hyprland: Fix window border on solo floating window

This commit is contained in:
SebastianStork 2025-08-22 18:41:24 +02:00
parent 8b9e37c7ed
commit 7d8a4e50cc

View file

@ -65,9 +65,9 @@
binds.hide_special_on_workspace_change = true; binds.hide_special_on_workspace_change = true;
workspace = [ workspace = [
# No gaps when only one window # No outer gaps when only one tiled window on normal workspaces
"w[t1]s[false], gapsout:0, gapsin:0" "w[t1]s[false], gapsout:0"
# Large gaps on special workspaces # Large outer gaps on special workspaces
"s[true], gapsout:30" "s[true], gapsout:30"
"special:music, on-created-empty:spotify" "special:music, on-created-empty:spotify"
@ -77,8 +77,11 @@
"special:files, on-created-empty:nemo" "special:files, on-created-empty:nemo"
]; ];
windowrule = [ windowrule = [
# No borders when only one window # No borders on floating window when it's the only window
"bordersize 0, floating:1, onworkspace:w[1]"
# No borders on tiled window when it's the only tiled window
"bordersize 0, floating:0, onworkspace:w[t1]" "bordersize 0, floating:0, onworkspace:w[t1]"
# No rounding on tiled window when it's the only tiled window on a normal workspace
"rounding 0, floating:0, onworkspace:w[t1]s[false]" "rounding 0, floating:0, onworkspace:w[t1]s[false]"
"idleinhibit fullscreen, class:.*" "idleinhibit fullscreen, class:.*"