.dotfiles/.config/hypr/rules.conf

86 lines
3.7 KiB
Text

# Layer rules
layerrule = no_anim on, match:namespace menu
layerrule = no_anim on, match:namespace notifications
# Workspace rules
workspace = w[t1], gapsin:0, gapsout:0, border:0
windowrule = workspace $ws_web silent, match:class (org.qutebrowser.qutebrowser)
windowrule = workspace $ws_web silent, match:class ([bB]rave-browser)
windowrule = workspace $ws_web, match:class (firefox)
windowrule = workspace $ws_focus, match:class ^(jetbrains-)
windowrule = workspace $ws_media, match:class ([cC]hromium)
windowrule = workspace $ws_media, match:class (io.freetubeapp.FreeTube)
windowrule = workspace $ws_media, match:class (org.qutebrowser.qutebrowser-kiosk)
windowrule = workspace $ws_media, match:class ([bB]rave-.*-Default)
windowrule = workspace $ws_chat silent, match:class (discord)
windowrule = workspace $ws_chat silent, match:class (Element)
windowrule = workspace $ws_chat silent, match:class (cinny)
windowrule = workspace $ws_chat silent, match:class (im.riot.Riot)
windowrule = workspace $ws_chat silent, match:class (TeamSpeak 3)
windowrule = workspace $ws_chat silent, match:class (TeamSpeak)
windowrule = workspace $ws_msg silent, match:class (thunderbird|net.thunderbird.Thunderbird)
windowrule = workspace $ws_msg silent, match:class ^(Signal|org.signal.Signal)
windowrule = workspace $ws02, match:class (OMNeT\+\+ IDE)
windowrule = workspace $ws03, match:class (Qtenv)
# General rules
windowrule = no_blur on, match:class ^$ # intended for menus. not sure about side-effects
# Specific rules
windowrule = float on, match:class (xdg-desktop-portal-gtk)
windowrule = float on, match:class ([bB]rave-browser), match:initial_title ^about:blank - Brave$
windowrule = no_initial_focus on, match:class (thunderbird|net.thunderbird.Thunderbird), match:title ^$
windowrule = float on, match:class (thunderbird|net.thunderbird.Thunderbird), match:title ^$
windowrule = float on, match:class (thunderbird|net.thunderbird.Thunderbird), match:title (Reminder)
windowrule = float on, match:class (org.keepassxc.KeePassXC), match:title (KeePassXC - Browser Access Request)
windowrule = stay_focused on, match:class (Pinentry-gtk)
windowrule = pin on, match:class (Pinentry-gtk)
windowrule = fullscreen on, match:class (FreeTube)
windowrule = float on, match:class (com/.https://ultimaker.UltiMaker-Cura), match:title (UltiMaker-Cura)
windowrule = tile on, match:class (cinny)
windowrule = fullscreen_state 0 0, match:class (cinny)
# https://github.com/hyprwm/Hyprland/issues/4257#issuecomment-1879781806
# fix tooltips (always have a title of `win.<id>`)
windowrule = no_initial_focus on, match:class ^(.*jetbrains.*)$, match:title ^(win.*)$
windowrule = no_focus on, match:class ^(.*jetbrains.*)$, match:title ^(win.*)$
# fix tab dragging (always have a single space character as their title)
windowrule = no_initial_focus on, match:class ^(.*jetbrains.*)$, match:title ^\\s$
windowrule = no_focus on, match:class ^(.*jetbrains.*)$, match:title ^\\s$
# Gaming Rules (steam and games)
windowrule = move 100%-300 100%-30, match:class (steam), match:title ^(notificationtoasts)
windowrule = no_focus on, match:class (steam), match:title ^(notificationtoasts)
windowrule = float on, match:class (zenity), match:title ^(Progress)
windowrule = no_initial_focus on, match:class (steam), match:title ^(Friends List)
windowrule = workspace $ws_chat silent, match:class (steam), match:title ^(Friends List)
windowrule = fullscreen on, match:class ^Minecraft
windowrule = fullscreen on, match:class ^cs2$
windowrule = workspace $ws_focus, match:class ^cs2$
windowrule = fullscreen on, match:class ^factorio$
windowrule = workspace $ws_focus, match:class ^factorio$
windowrule = fullscreen on, match:class ^(steam_app_)
windowrule = workspace $ws_focus, match:class ^(steam_app_)