From 10f7a4315c77b390df5c60695db3068c0b3b292f Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 2 Jul 2024 20:31:48 -0400 Subject: Make sway rules for firefox more robust, add passthrough mode passthrough mode is useful when controlling sway remotely via remmina and wayvnc. --- .config/sway/config | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.config/sway/config') diff --git a/.config/sway/config b/.config/sway/config index 684218e..640ed06 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -152,6 +152,11 @@ mode notifications { } bindsym $mod+n mode notifications +mode passthrough { + bindsym $mod+p mode "default" +} +bindsym $mod+p mode passthrough + bar { position bottom @@ -181,11 +186,11 @@ for_window [class="TigerVNC Viewer"] floating enable for_window [app_id="thunar"] floating enable for_window [app_id="pavucontrol"] floating enable -for_window [app_id="firefox" title="^Picture-in-Picture$"] \ +for_window [app_id="^[Ff]irefox.*" title="^Picture-in-Picture$"] \ floating enable, move position 68 ppt 67 ppt, sticky enable -for_window [app_id="firefox" title="Choose User Profile"] \ +for_window [app_id="^[Ff]irefox.*" title="Choose User Profile"] \ floating enable -for_window [app_id="firefox" title="Sharing Indicator"] \ +for_window [app_id="^[Ff]irefox.*" title="Sharing Indicator"] \ floating enable, kill exec mako >/tmp/mako.log 2>&1 -- cgit v1.2.3-60-g2f50