aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/configs/WindowRules.conf
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/configs/WindowRules.conf')
-rw-r--r--config/hypr/configs/WindowRules.conf255
1 files changed, 195 insertions, 60 deletions
diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf
index e94cc536..8212e9bf 100644
--- a/config/hypr/configs/WindowRules.conf
+++ b/config/hypr/configs/WindowRules.conf
@@ -17,8 +17,6 @@
# windowrule = match:tag games*, workspace 8
# windowrule = match:tag multimedia*, workspace 9 silent
-
-
# TAGS - add apps under appropriate tag to use the same settings
# browser tags
windowrule = match:class ^([Ff]irefox|org.mozilla.firefox|[Ff]irefox-esr|[Ff]irefox-bin)$, tag +browser
@@ -26,7 +24,7 @@ windowrule = match:class ^([Gg]oogle-chrome(-beta|-dev|-unstable)?)$, tag +brows
windowrule = match:class ^(chrome-.+-Default)$, tag +browser
windowrule = match:class ^([Cc]hromium)$, tag +browser
windowrule = match:class ^([Mm]icrosoft-edge(-stable|-beta|-dev|-unstable))$, tag +browser
-windowrule = match:class ^(Brave-browser(-beta|-dev|-unstable)?)$, tag +browser
+windowrule = match:class ^([Bb]rave-browser(-beta|-dev|-unstable)?)$, tag +browser
windowrule = match:class ^([Tt]horium-browser|[Cc]achy-browser)$, tag +browser
windowrule = match:class ^(zen-alpha|zen)$, tag +browser
@@ -58,7 +56,7 @@ windowrule = match:class ^(com.obsproject.Studio)$, tag +screenshare
# IM tags
windowrule = match:class ^([Dd]iscord|[Ww]ebCord|[Vv]esktop)$, tag +im
windowrule = match:class ^([Ff]erdium)$, tag +im
-windowrule = match:class ^([Ww]hatsapp-for-linux)$, tag +im
+windowrule = match:class ^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$, tag +im
windowrule = match:class ^(org.telegram.desktop|io.github.tdesktop_x64.TDesktop)$, tag +im
windowrule = match:class ^(teams-for-linux)$, tag +im
windowrule = match:class ^(im.riot.Riot|Element)$, tag +im
@@ -66,6 +64,7 @@ windowrule = match:class ^(im.riot.Riot|Element)$, tag +im
# game tags
windowrule = match:class ^(gamescope)$, tag +games
windowrule = match:class ^(steam_app_\\d+)$, tag +games
+windowrule = match:xdg_tag ^(proton-game)$, tag +games
# gamestore tags
windowrule = match:class ^([Ss]team)$, tag +gamestore
@@ -107,42 +106,19 @@ windowrule = match:class ^(evince)$, tag +viewer
windowrule = match:class ^(eog|org.gnome.Loupe)$, tag +viewer
# Some special override rules
-windowrule = match:tag multimedia_video, no_blur on
-windowrule = match:tag multimedia_video, opacity 1.0
windowrule = match:tag multimedia, no_blur on
windowrule = match:tag multimedia, opacity 1.0
-# POSITION
-windowrule = match:tag KooL_Cheat, center on
-windowrule = match:tag KooL-Settings, center on
-windowrule = match:title ^(ROG Control)$, center on
-windowrule = match:title ^(Keybindings)$, center on
-windowrule = match:class ^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$, center on
-windowrule = match:class ^([Ff]erdium)$, center on
-
-# windowrule to avoid idle for fullscreen apps
-windowrule = match:fullscreen true, idle_inhibit fullscreen
-windowrule = idle_inhibit fullscreen, match:fullscreen 1
-windowrule = idle_inhibit fullscreen, match:class ^(*)$
-windowrule = idle_inhibit fullscreen, match:title ^(*)$
-
# FLOAT
-windowrule = match:tag KooL_Cheat, float on
-windowrule = match:tag wallpaper, float on, center on
-windowrule = match:tag settings, float on, center on
-windowrule = match:tag viewer, float on, center on
-windowrule = match:tag KooL-Settings, float on, center on
windowrule = match:class ([Zz]oom|onedriver|onedriver-launcher), float on
-windowrule = match:class (org.gnome.Calculator|qalculate-gtk), float on
windowrule = match:class ^(mpv|com.github.rafostar.Clapper)$, float on
windowrule = match:class ^([Qq]alculate-gtk)$, float on
-windowrule = match:class ^([Ff]erdium)$, float on
-# popups and dialogue
+# float popups and dialogue
windowrule = match:title ^(Authentication Required)$, float on, center on
-windowrule = match:class (codium|codium-url-handler|VSCodium) match:title negative:(.*codium.*|.*VSCodium.*), float on
-windowrule = match:class ^(com.heroicgameslauncher.hgl)$ match:title negative:(Heroic Games Launcher), float on
-windowrule = match:class ^([Ss]team)$ match:title negative:^([Ss]team)$, float on
+windowrule = match:class (codium|codium-url-handler|VSCodium), match:title negative:(.*codium.*|.*VSCodium.*), float on
+windowrule = match:class ^(com.heroicgameslauncher.hgl)$, match:title negative:(Heroic Games Launcher), float on
+windowrule = match:class ^([Ss]team)$, match:title negative:^([Ss]team)$, float on
windowrule = match:title ^(Add Folder to Workspace)$, float on, size (monitor_w*0.7) (monitor_h*0.6), center on
windowrule = match:title ^(Save As)$, float on, size (monitor_w*0.7) (monitor_h*0.6), center on
windowrule = match:initial_title (Open Files), float on, size (monitor_w*0.7) (monitor_h*0.6)
@@ -150,6 +126,22 @@ windowrule = match:title ^(SDDM Background)$, float on, center on, size (monitor
windowrule = match:class ^(yad)$, float on, center on, size (monitor_w*0.2) (monitor_h*0.2)
windowrule = match:class ^(hyprland-donate-screen)$, float on, center on
+# SIZE
+
+# POSITION
+windowrule = match:title ^(ROG Control)$, center on
+windowrule = match:title ^(Keybindings)$, center on
+windowrule = match:class ^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$, center on
+windowrule = match:class ^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$, center on
+windowrule = match:class ^(nm-connection-editor)$, center on
+windowrule = match:class ^(nm-applet)$, match:title ^(Wi-Fi Network Authentication Required)$, center on
+
+# windowrule to avoid idle for fullscreen apps
+windowrule = match:fullscreen true, idle_inhibit fullscreen
+windowrule = idle_inhibit fullscreen, match:fullscreen 1
+windowrule = idle_inhibit fullscreen, match:class .*
+windowrule = idle_inhibit fullscreen, match:title .*
+
# OPACITY
windowrule = match:tag browser, opacity 0.99 0.8
windowrule = match:tag projects, opacity 0.9 0.8
@@ -157,28 +149,15 @@ windowrule = match:tag im, opacity 0.94 0.86
windowrule = match:tag multimedia, opacity 0.94 0.86
windowrule = match:tag file-manager, opacity 0.9 0.8
windowrule = match:tag terminal, opacity 0.9 0.7
-windowrule = match:tag settings, opacity 0.8 0.7
-windowrule = match:tag viewer, opacity 0.82 0.75
-windowrule = match:tag wallpaper, opacity 0.9 0.7
windowrule = match:class ^(gedit|org.gnome.TextEditor|mousepad)$, opacity 0.8 0.7
windowrule = match:class ^(deluge)$, opacity 0.9 0.8
windowrule = match:class ^(seahorse)$, opacity 0.9 0.8
-windowrule = match:title ^(Picture-in-Picture)$, opacity 0.95 0.75
-
-# SIZE
-windowrule = match:tag KooL_Cheat, size (monitor_w*0.65) (monitor_h*0.9)
-windowrule = match:tag wallpaper, size (monitor_w*0.7) (monitor_h*0.7)
-windowrule = match:tag settings, size (monitor_w*0.7) (monitor_h*0.7)
-windowrule = match:class ^([Ff]erdium)$, size (monitor_w*0.6) (monitor_h*0.7)
-
# BLUR & FULLSCREEN
-windowrule = match:tag games, no_blur on, fullscreen 0
-windowrule = match:tag games, fullscreen 0
-# This not gonna take the focus to the window that appears when
-# hovering over some of the parts of the IntelliJ Products
-windowrule = match:class ^(jetbrains-*), no_initial_focus on
+# This not gonna take the focus to the window that appears
+# when hovering over some of the parts of the IntelliJ Products
+windowrule = match:class ^(jetbrains-.*)$, no_initial_focus on
windowrule = match:title ^(wind.*)$, no_initial_focus on
# LAYER RULES
@@ -187,16 +166,9 @@ layerrule = match:namespace notifications, blur on
layerrule = match:namespace quickshell:overview, blur on
layerrule = match:namespace quickshell:overview, ignore_alpha 0.5
-# Named rules for special cases
-windowrule {
- name = Whatsapp-zapzap
- match:class = ^([Ww]hatsapp-for-linux|ZapZap|com.rtosta.zapzap)$
- size = (monitor_w*0.6) (monitor_h*0.7)
- center = on
-}
windowrule {
name = Picture-in-Picture
- match:title = ^(Picture-in-Picture)$
+ match:title = ^[Pp]icture-in-[Pp]icture$
float = on
move = 72% 7%
opacity = 0.95 0.75
@@ -204,13 +176,176 @@ windowrule {
keep_aspect_ratio = on
size = (monitor_w*0.3) (monitor_h*0.3)
}
-# Thunar copy progress dialog
+
+# Named rule for CachyOS Kernel Manager
+windowrule {
+ name = CachyOS Kernel Manager
+ match:class = ^(org.cachyos.KernelManager)$
+ match:title = ^(CachyOS Kernel Manager)$
+ match:initial_class = ^(org.cachyos.KernelManager)$
+ match:initial_title = ^(CachyOS Kernel Manager)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
+
+# Named rule for CachyOS Package Installer
+windowrule {
+ name = CachyOS Package Installer
+ match:class = ^(org.cachyos.cachyos-pi)$
+ match:title = ^(CachyOS Package Installer)$
+ match:initial_class = ^(org.cachyos.cachyos-pi)$
+ match:initial_title = ^(CachyOS Package Installer)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
+
+# Named rule for CachyOS Hello
+windowrule {
+ name = CachyOS Hello
+ match:class = ^(CachyOSHello)$
+ match:title = ^(CachyOS Hello)$
+ match:initial_class = ^(CachyOSHello)$
+ match:initial_title = ^(CachyOS Hello)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
+
+# Named rule for Cache Cleaner - Octopi
+windowrule {
+ name = Cache Cleaner - Octopi
+ match:class = ^(octopi-cachecleaner)$
+ match:title = ^(Cache Cleaner - Octopi)$
+ match:initial_class = ^(octopi-cachecleaner)$
+ match:initial_title = ^(Cache Cleaner - Octopi)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
+
+# Named rule for Octopi Package Manager
+windowrule {
+ name = Octopi Package Manager
+ match:class = ^(octopi)$
+ match:title = ^(Octopi)$
+ match:initial_class = ^(octopi)$
+ match:initial_title = ^(Octopi)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
+
+# Named rule for Repository Editor - Octopi
+windowrule {
+ name = Repository Editor - Octopi
+ match:class = ^(octopi-repoeditor)$
+ match:title = ^(Repository Editor - Octopi)$
+ match:initial_class = ^(octopi-repoeditor)$
+ match:initial_title = ^(Repository Editor - Octop)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
+
+# Named rule for KooL Cheat (tag)
+windowrule {
+ name = KooL Cheat (tag)
+ match:tag = KooL_Cheat
+ float = on
+ center = on
+ size = (monitor_w*0.65) (monitor_h*0.9)
+}
+
+# Named rule for Wallpaper (tag)
+windowrule {
+ name = Wallpaper (tag)
+ match:tag = wallpaper
+ float = on
+ center = on
+ size = (monitor_w*0.7) (monitor_h*0.7)
+ opacity = 0.9 0.7
+}
+
+# Named rule for Settings (tag)
+windowrule {
+ name = Settings (tag)
+ match:tag = settings
+ float = on
+ center = on
+ size = (monitor_w*0.7) (monitor_h*0.7)
+ opacity = 0.8 0.7
+}
+
+# Named rule for Viewer (tag)
+windowrule {
+ name = Viewer (tag)
+ match:tag = viewer
+ float = on
+ center = on
+ opacity = 0.82 0.75
+}
+
+# Named rule for KooL Settings (tag)
windowrule {
- name = Thunar-Progress-bar
- match:class = ^(thunar)$
- match:title = ^(File Operation Progress)$
+ name = KooL Settings (tag)
+ match:tag = KooL-Settings
float = on
center = on
- size = (monitor_w*0.26) (monitor_h*0.18)
}
+# Named rule for Multimedia Video (tag)
+windowrule {
+ name = Multimedia Video (tag)
+ match:tag = multimedia_video
+ no_blur = on
+ opacity = 1.0
+}
+
+# Named rule for Games (tag)
+windowrule {
+ name = Games (tag)
+ match:tag = games
+ no_blur = on
+ fullscreen = 0
+}
+
+# Named rule for Ferdium
+windowrule {
+ name = Ferdium
+ match:class = ^([Ff]erdium)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.7)
+}
+
+# Named rule for Calculators
+windowrule {
+ name = Calculators
+ match:class = (org.gnome.Calculator|qalculate-gtk)
+ float = on
+ center = on
+ size = (monitor_w*0.25) (monitor_h*0.3)
+}
+
+# Named rule for Thunar Dialogs
+windowrule {
+ name = Thunar Dialogs
+ match:class = ([Tt]hunar)
+ match:title = negative:(.*[Tt]hunar.*)
+ float = on
+ center = on
+}
+
+# Named rule for Bitwarden
+windowrule {
+ name = Bitwarden
+ match:class = ^(Bitwarden)$
+ match:title = ^(Bitwarden)$
+ match:initial_class = ^(Bitwarden)$
+ match:initial_title = ^(Bitwarden)$
+ float = on
+ center = on
+ size = (monitor_w*0.6) (monitor_h*0.6)
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage