fix(hyprland): Center most floating windows, supress maximize

This commit is contained in:
histalek 2024-04-11 12:18:02 +02:00
parent a4fd9a0074
commit 33acfe1d8e
Signed by: histalek
SSH key fingerprint: SHA256:6a6N2Wzk73nwURUHC/ubbCyqdB6yfie0Jv/NGvRcsIE

View file

@ -23,5 +23,11 @@ windowrulev2 = workspace 22 silent,class:(^steam_app_)
windowrulev2 = workspace 22 silent,title:(Default - Wine desktop)
windowrulev2 = workspace 22,class:(^looking-glass-client$)
# Center all floating windows
windowrulev2 = center,floating:1
# Center all floating windows, except those with an empty title
# e.g. Steam context menus otherwise would get centered
windowrulev2 = center,floating:1,title:(.+)
# supress 'maximize' event from all windows as this might 'hide' another window
# on the same workspace. Essentially the windows might take up more space than
# the workspace has.
windowrulev2 = suppressevent maximize,class:(.*)