mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
hyprland: Optimize workspace and window rules
This commit is contained in:
parent
db974ff494
commit
68ef37db26
1 changed files with 11 additions and 23 deletions
|
|
@ -65,32 +65,20 @@
|
||||||
binds.hide_special_on_workspace_change = true;
|
binds.hide_special_on_workspace_change = true;
|
||||||
|
|
||||||
workspace = [
|
workspace = [
|
||||||
# No gaps when only one window
|
|
||||||
"w[tv1], gapsout:0, gapsin:0"
|
|
||||||
"f[1], gapsout:0, gapsin:0"
|
|
||||||
|
|
||||||
"special:music, gapsout:30, on-created-empty:spotify"
|
|
||||||
"special:chat, gapsout:30, on-created-empty:discord"
|
|
||||||
"special:flake, gapsout:30, on-created-empty:kitty --directory ${config.home.sessionVariables.NH_FLAKE}"
|
|
||||||
"special:monitor, gapsout:30, on-created-empty:kitty btm"
|
|
||||||
"special:files, gapsout:30, on-created-empty:nemo"
|
|
||||||
];
|
|
||||||
windowrulev2 = [
|
|
||||||
# No border when only one window
|
# No border when only one window
|
||||||
"bordersize 0, floating:0, onworkspace:w[tv1]"
|
"w[1], bordersize:0"
|
||||||
"rounding 0, floating:0, onworkspace:w[tv1]"
|
# No gaps and no rounding on regular workspaces when only one window
|
||||||
"bordersize 0, floating:0, onworkspace:f[1]"
|
"w[1]s[false], gapsout:0, gapsin:0, rounding:0"
|
||||||
"rounding 0, floating:0, onworkspace:f[1]"
|
# Large gaps on special workspaces
|
||||||
|
"s[true], gapsout:30"
|
||||||
|
|
||||||
"rounding 6, floating:0, onworkspace:special:music"
|
"special:music, on-created-empty:spotify"
|
||||||
"rounding 6, floating:0, onworkspace:special:chat"
|
"special:chat, on-created-empty:discord"
|
||||||
"rounding 6, floating:0, onworkspace:special:monitor"
|
"special:flake, on-created-empty:kitty --directory ${config.home.sessionVariables.NH_FLAKE}"
|
||||||
"rounding 6, floating:0, onworkspace:special:files"
|
"special:monitor, on-created-empty:kitty btm"
|
||||||
"rounding 6, floating:0, onworkspace:special:flake"
|
"special:files, on-created-empty:nemo"
|
||||||
"noblur, class:(kitty), onworkspace:special:flake"
|
|
||||||
|
|
||||||
"idleinhibit fullscreen, class:.*"
|
|
||||||
];
|
];
|
||||||
|
windowrule = [ "idleinhibit fullscreen, class:.*" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue