From 15075f2009a1865f56bf936ec10636a5c54a410d Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sat, 22 Jul 2023 23:59:33 +0200 Subject: [PATCH] Update window rules --- home/.config/hypr/window_rules.conf | 80 ++++++++++++++--------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/home/.config/hypr/window_rules.conf b/home/.config/hypr/window_rules.conf index df900e7..2b3a6ad 100644 --- a/home/.config/hypr/window_rules.conf +++ b/home/.config/hypr/window_rules.conf @@ -1,11 +1,48 @@ -# Automatically move windows to their workspace +# Assigned workspaces windowrulev2 = workspace 2, class:^(firefox)$ windowrulev2 = workspace 4, class:^(discord)$ windowrulev2 = workspace 4, class:^(WebCord)$ windowrulev2 = workspace 5, class:^(Spotify)$ -windowrulev2 = workspace 6, class:^(Stremio)$ +windowrulev2 = workspace 6, class:^(com.stremio.stremio)$ -# General float rules +# Idle inhibit rules +windowrulev2 = idleinhibit focus, class:^(com.stremio.stremio)$ +windowrulev2 = idleinhibit focus, class:^(mpv)$ +windowrulev2 = idleinhibit focus, class:^(firefox)$,title:^(.+ - YouTube — Mozilla Firefox)$ + +# Give apps proper size +windowrulev2 = size 800 550, class:^(qalculate-gtk)$ +windowrulev2 = tile, class:^(Spotify)$ + +# Auto-float mode +windowrulev2 = float, class:^(Lxappearance)$ +windowrulev2 = float, class:^(Rofi)$ +windowrulev2 = float, class:^(feh)$ +windowrulev2 = float, class:^(pavucontrol-qt)$ +windowrulev2 = float, class:^(pavucontrol)$ +windowrulev2 = float, class:^(file-roller)$ +windowrulev2 = float, class:^(qalculate-gtk)$ +windowrulev2 = float, class:^(com.github.wwmm.easyeffects) +windowrulev2 = float, class:^(opensnitch_ui)$ + +## Float firefox windows (like bookmark menus, or some extension windows) +windowrulev2 = float, class:^(firefox)$,title:^(Revert Bookmarks)$ +windowrulev2 = float, class:^(firefox)$,title:^(Library)$ +windowrulev2 = float, class:^(firefox)$,title:^(Extension: \(uBlock Origin\)) +windowrulev2 = float, class:^(firefox)$,title:^(Firefox — Sharing Indicator)$ + +## Float some pcmanfm windows +windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Mount)$ +windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Preferences)$ +windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Move files)$ +windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Search Files)$ +windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Copy Files)$ +windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Confirm to replace files)$ + +## Float some windows from other apps +windowrulev2 = float, class:^(Spotify)$,title:^(Ozone X11)$ + +## General float rules windowrulev2 = float, class:^(file_progress)$ windowrulev2 = float, class:^(confirm)$ windowrulev2 = float, class:^(dialog)$ @@ -15,41 +52,4 @@ windowrulev2 = float, class:^(error)$ windowrulev2 = float, class:^(splash)$ windowrulev2 = float, class:^(confirmreset)$ -# Float simple apps -windowrulev2 = float, class:^(Lxappearance)$ -windowrulev2 = float, class:^(Rofi)$ -windowrulev2 = float, class:^(feh)$ -windowrulev2 = float, class:^(pavucontrol-qt)$ -windowrulev2 = float, class:^(pavucontrol)$ -windowrulev2 = float, class:^(file-roller)$ -windowrulev2 = float, class:^(qalculate-gtk)$ -windowrulev2 = float, class:^(com.github.wwmm.easyeffects) - -# Give apps proper size -windowrulev2 = size 800 550, class:^(qalculate-gtk)$ -windowrulev2 = tile, class:^(Spotify)$ - -# Float some firefox windows (like bookmark menus, or some extension windows) -windowrulev2 = float, class:^(firefox)$,title:^(Revert Bookmarks)$ -windowrulev2 = float, class:^(firefox)$,title:^(Library)$ -windowrulev2 = float, class:^(firefox)$,title:^(Extension: \(uBlock Origin\)) -windowrulev2 = float, class:^(firefox)$,title:^(Firefox — Sharing Indicator)$ - -# Float some pcmanfm windows -windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Mount)$ -windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Preferences)$ -windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Move files)$ -windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Search Files)$ -windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Copy Files)$ -windowrulev2 = float, class:^(pcmanfm-qt)$,title:^(Confirm to replace files)$ - -# Float some windows from other apps -windowrulev2 = float, class:^(Spotify)$,title:^(Ozone X11)$ -windowrulev2 = float, class:^(opensnitch_ui)$ - -# Idle inhibit rules -windowrulev2 = idleinhibit focus, class:^(com.stremio.stremio)$ -windowrulev2 = idleinhibit focus, class:^(mpv)$ -windowrulev2 = idleinhibit focus, class:^(firefox)$,title:^(.+ - YouTube — Mozilla Firefox)$ - # vi: ft=conf