# ~/.config/hypr/conf.d/60-windowrules.conf

# https://wiki.hyprland.org/Configuring/Window-Rules/
# https://wiki.hyprland.org/Configuring/Workspace-Rules/

## ========== Communication ==========
# Mumble & Discord & TeamSpeak
windowrule = workspace 10, class:^(info\.mumble\.Mumble|discord|TeamSpeak|vesktop)$
# Signal & Telegram
windowrule = workspace 9, class:^(Element|signal|Signal|org\.telegram\.desktop)$
windowrule = noscreenshare, class:^(Element|signal|Signal|org\.telegram\.desktop)$

## ========== Multimedia ==========
windowrule = workspace 8, class:Spotify

## ========== Development ==========
windowrule = float, class:jetbrains-webstorm, title:Welcome to WebStorm
windowrule = size 1080 720, class:jetbrains-webstorm, title:Welcome to WebStorm

## ========== Games ==========
# World of Warcraft (Classic & Retail)
windowrule = workspace 1,force, class:^(wowclassic|wow)\.exe$, title:World of Warcraft
windowrule = fullscreen, class:^(wowclassic|wow)\.exe$, title:World of Warcraft

## ========== Launcher ==========
# Steam & Battle.net & Lutris
windowrule = workspace 2, class:^(steam|battle\.net\.exe|net\.lutris\.Lutris)$
windowrule = center 1, class:^(battle\.net\.exe|net\.lutris\.Lutris)$
windowrule = float, class:^(battle\.net\.exe|net\.lutris\.Lutris)$
windowrule = float, class:steam, title:Friends List
windowrule = workspace 1, class:steam, title:Launching...

# Lutris
windowrule = size 1600 1000, class:net.lutris.Lutris 
windowrule = float, class:net.lutris.Lutris, title:^Configure.*$
windowrule = size 1080 720, class:net.lutris.Lutris, title:^Configure.*$

# Battle.net Systray
windowrule = workspace 2, class:explorer.exe
windowrule = move onscreen 1725 1869, class:explorer.exe

# ProtonUp-Qt
windowrule = float, class:net.davidotek.pupgui2
windowrule = size 869 642, class:net.davidotek.pupgui2

## ========== 3D Slicer & Printing ==========
windowrule = workspace 3, class:BambuStudio
#windowrule = float, class:BambuStudio

windowrule = workspace 3, class:OrcaSlicer
windowrule = float, class:OrcaSlicer

## ========== System ==========
windowrule = float, class:org.keepassxc.KeePassXC
windowrule = noscreenshare, class:org.keepassxc.KeePassXC
windowrule = float, class:org.kde.dolphin
windowrule = float, class:com.saivert.pwvucontrol
windowrule = float, class:org.gnome.Nautilus
windowrule = float, class:org.gnome.NautilusPreviewer
windowrule = float, class:org.gnome.FileRoller

## ========== Screenshot ==========
windowrule = float, class:com.gabm.satty
windowrule = size >700 >400, class:com.gabm.satty

## ========== Misc ==========
windowrule = focusonactivate, class:zen

