dotfiles/.config/hypr/windowRules.conf
histalek c1fddab9a0
fix(hyprland): Don't center steam floating windows
This is important as most floating windows from steam are context menus.
2024-06-29 12:01:49 +02:00

36 lines
1.6 KiB
Text

# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# Make xwayland windows have a pink border
windowrulev2 = bordercolor rgba(f52891cc),xwayland:1
# floating windows
windowrulev2 = float,class:(org.keepassxc.KeePassXC)
# Move window to specific workspace
windowrulev2 = workspace 1,class:(virt-manager)
windowrulev2 = workspace 11,class:(^thunderbird$)
windowrulev2 = workspace 12,class:(^TeamSpeak 3$)
windowrulev2 = workspace 13,class:(^Signal$)
windowrulev2 = workspace 15,class:(^betterbird$)
windowrulev2 = workspace 16 silent,class:(^cinny$)
windowrulev2 = workspace 16 silent,class:(^Element$)
windowrulev2 = workspace 17 silent,class:(^discord$)
windowrulev2 = workspace 17 silent,class:(^com.discordapp.Discord$)
windowrulev2 = workspace 17 silent,class:(^vesktop$)
windowrulev2 = workspace 18,class:(^org.gnome.Calendar$)
windowrulev2 = workspace 21 silent,class:(^steam)
windowrulev2 = workspace 21 silent,initialclass:(^steam)
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, except those with an empty title
# e.g. Steam context menus otherwise would get centered
# windowrulev2 = center,floating:1,title:(.+)
windowrulev2 = center,floating:1,class:(^steam),title:(.+)
windowrulev2 = center,floating:1,initialclass:(^steam),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:(.*)