Window Management (KWin)
Configure the window manager behavior, effects, and virtual desktops.
Virtual Desktops
You can define virtual desktops by name. The rows and number of desktops are calculated automatically unless specified.
programs.plasma.kwin.virtualDesktops = {
rows = 1;
names = [
"Code"
"Web"
"Chat"
"Music"
];
};
Window Rules
Define rules to force specific window behaviors (e.g., maximize on start, remove borders).
programs.plasma.window-rules = [
{
description = "Dolphin no border";
match = {
window-class = {
value = "dolphin";
type = "substring";
};
window-types = [ "normal" ];
};
apply = {
noborder = {
value = true;
apply = "force";
};
};
}
];
Effects
Enable or disable desktop effects.
programs.plasma.kwin.effects = {
wobblyWindows.enable = true;
translucency.enable = true;
minimization = {
animation = "magiclamp";
duration = 300;
};
blur = {
enable = true;
strength = 10;
};
};
Night Light
Configure automatic screen color temperature adjustment.
programs.plasma.kwin.nightLight = {
enable = true;
mode = "location";
location = {
latitude = "51.5";
longitude = "-0.12";
};
temperature = {
day = 6500;
night = 3500;
};
};
Tiling (Polonium)
Plasma Manager includes support for configuring Polonium, a tiling window manager script for KWin.
programs.plasma.kwin.scripts.polonium = {
enable = true;
settings = {
layout.engine = "bsp";
borderVisibility = "noBorderTiled";
};
};