From 803ace98f7891d2f884d6e65844e1c895d7a2223 Mon Sep 17 00:00:00 2001 From: Alexander Oakman Date: Sat, 17 Aug 2024 19:45:06 +0300 Subject: [PATCH] Fix regex in rule for Firefox The rule was not used for windows, the title of which began with the uppercase letter. Now this is fixed. --- etc/sway/config.d/30-applications-defaults.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/sway/config.d/30-applications-defaults.conf b/etc/sway/config.d/30-applications-defaults.conf index 1b36773..bb32ea5 100644 --- a/etc/sway/config.d/30-applications-defaults.conf +++ b/etc/sway/config.d/30-applications-defaults.conf @@ -1,5 +1,5 @@ # set floating mode for specific application -for_window [app_id="firefox" title="^Library$"] floating enable, border pixel 1, sticky enable +for_window [app_id="[Ff]irefox" title="^Library$"] floating enable, border pixel 1, sticky enable for_window [app_id="thunderbird" title=".*Reminder"] floating enable for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 30 ppt height 40 ppt for_window [app_id="floating_shell"] floating enable, border pixel 1, sticky enable, resize set width 50 ppt height 60 ppt @@ -22,7 +22,7 @@ for_window [class="calamares"] floating enable for_window [app_id="calamares"] floating enable for_window [app_id="sway-input-config"] floating enable for_window [title="Save File"] floating enable -for_window [title="Firefox .*— Sharing Indicator"] floating enable, sticky enable, move to scratchpad +for_window [title="[Ff]irefox .*— Sharing Indicator"] floating enable, sticky enable, move to scratchpad for_window [app_id="" title=".* is sharing your screen."] floating enable # set floating mode for generated windows @@ -48,7 +48,7 @@ for_window [class="Brave-browser"] mark Browser for_window [class="firefox"] mark Browser for_window [app_id="Chromium-browser"] mark Browser for_window [app_id="brave-browser"] mark Browser -for_window [app_id="firefox"] mark Browser +for_window [app_id="[Ff]irefox"] mark Browser # inhibit scrensaver for fullscreen browser windows for_window [con_mark="Browser"] {