From 50028ad3e9f5c226f30b9c1b6d25fe69fd5f0f45 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Thu, 26 Mar 2026 01:17:21 +0100 Subject: [PATCH] windowrules fixed --- modules/binds.conf | 6 ++--- modules/executes.conf | 21 ++++++++-------- modules/windowrules.conf | 54 ++++++++++++++++++++++++++++++++-------- 3 files changed, 56 insertions(+), 25 deletions(-) diff --git a/modules/binds.conf b/modules/binds.conf index 366b179..8863634 100644 --- a/modules/binds.conf +++ b/modules/binds.conf @@ -1,13 +1,13 @@ bindm = SUPER,mouse:272,movewindow bindm = SUPER,mouse:273,resizewindow -bind = SUPER,RETURN,exec, uwsm app -S out -- foot +bind = SUPER,RETURN,exec, foot bind = SUPER,Q,killactive bind = SUPER,M,exit -bind = SUPER,E,exec, uwsm app -S out -- thunar +bind = SUPER,E,exec, thunar bind = SUPER,S,togglefloating bind = SUPER,P,pseudo -bind = SUPER,B,exec, uwsm app -S out -- librewolf +bind = SUPER,B,exec, librewolf bind = SUPER,H,movefocus,l bind = SUPER,L,movefocus,r diff --git a/modules/executes.conf b/modules/executes.conf index 6933513..ebdd4e5 100644 --- a/modules/executes.conf +++ b/modules/executes.conf @@ -1,13 +1,12 @@ exec-once = dispwin -d 1 color_profiles/1440p\ monitor.icm -exec-once = uwsm app -S out -- zshell -exec-once = uwsm app -S out -- AyuGram -exec-once = uwsm app -S out -- teams-for-linux -exec-once = uwsm app -S out -- vesktop -exec-once = uwsm app -S out -- steam -silent -exec-once = uwsm app -S out -- thunderbird -exec-once = uwsm app -S out -- fcitx5 -exec-once = uwsm app -S out -- wl-paste --type text --watch cliphist store -exec-once = uwsm app -S out -- wl-paste --type image --watch cliphist store -exec-once = uwsm app -S out -- nextcloud --background +exec-once = zshell +exec-once = AyuGram +exec-once = teams-for-linux +exec-once = vesktop +exec-once = steam -silent +exec-once = thunderbird +exec-once = fcitx5 +exec-once = wl-paste --type text --watch cliphist store +exec-once = wl-paste --type image --watch cliphist store +exec-once = nextcloud --background exec-once = hyprsunset -i -exec-once = systemctl --user start hyprpolkitagent.service diff --git a/modules/windowrules.conf b/modules/windowrules.conf index 56c9e8c..8aa1ec0 100644 --- a/modules/windowrules.conf +++ b/modules/windowrules.conf @@ -1,12 +1,44 @@ -windowrule = opacity 0.0 override, class:^(xwaylandvideobridge)$ -windowrule = noanim, class:^(xwaylandvideobridge)$ -windowrule = noinitialfocus, class:^(xwaylandvideobridge)$ -windowrule = maxsize 1 1, class:^(xwaylandvideobridge)$ -windowrule = noblur, class:^(xwaylandvideobridge)$ -windowrule = nofocus, class:^(xwaylandvideobridge)$ +windowrule { + name = windowrule-1 + opacity = 0.0 override + no_anim = on + no_initial_focus = on + max_size = 1 1 + no_blur = on + no_focus = on + match:class = ^(xwaylandvideobridge)$ +} + + +windowrule { + name = windowrule-2 + idle_inhibit = fullscreen + match:class = .* +} + +windowrule { + name = windowrule-3 + idle_inhibit = always + match:content = video +} + +windowrule { + name = windowrule-4 + idle_inhibit = always + match:content = game +} + +windowrule { + name = windowrule-5 + idle_inhibit = always + match:fullscreen_state_internal = client + match:fullscreen_state_client = 2 +} + +windowrule { + name = windowrule-6 + idle_inhibit = always + match:fullscreen_state_internal = internal + match:fullscreen_state_client = 2 +} -windowrulev2 = idleinhibit fullscreen, class:.* -windowrule = idleinhibit always, content:video -windowrule = idleinhibit always, content:game -windowrule = idleinhibit always, fullscreenstate:client 2 -windowrule = idleinhibit always, fullscreenstate:internal 2