summaryrefslogtreecommitdiffstats
path: root/.config/sway
diff options
context:
space:
mode:
authorAmin Bandali <bandali@kelar.org>2024-07-02 20:31:48 -0400
committerAmin Bandali <bandali@kelar.org>2024-07-02 20:32:12 -0400
commit10f7a4315c77b390df5c60695db3068c0b3b292f (patch)
treec6af23ca1ab8d6f89b0440953960fe68294c655d /.config/sway
parente41121c3bef2e8b37ad05209d784aad26b16a813 (diff)
downloadconfigs-10f7a4315c77b390df5c60695db3068c0b3b292f.tar.gz
configs-10f7a4315c77b390df5c60695db3068c0b3b292f.tar.xz
configs-10f7a4315c77b390df5c60695db3068c0b3b292f.zip
Make sway rules for firefox more robust, add passthrough mode
passthrough mode is useful when controlling sway remotely via remmina and wayvnc.
Diffstat (limited to '')
-rw-r--r--.config/sway/config11
1 files changed, 8 insertions, 3 deletions
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