Merge branch 'user/okmans/window-fixes' into 'master'

Improve rules for applications and make some fixes

See merge request tile-os/tileos-settings-sway!10
This commit is contained in:
Aleksey Samoilov 2024-08-17 19:42:43 +00:00
commit be42ae6fc1

View file

@ -1,5 +1,6 @@
# set floating mode for specific application # 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
for_window [app_id="[Ll]ibrewolf" title="^Library$"] floating enable, border pixel 1
for_window [app_id="thunderbird" title=".*Reminder"] floating 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_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 for_window [app_id="floating_shell"] floating enable, border pixel 1, sticky enable, resize set width 50 ppt height 60 ppt
@ -22,7 +23,7 @@ for_window [class="calamares"] floating enable
for_window [app_id="calamares"] floating enable for_window [app_id="calamares"] floating enable
for_window [app_id="sway-input-config"] floating enable for_window [app_id="sway-input-config"] floating enable
for_window [title="Save File"] 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 for_window [app_id="" title=".* is sharing your screen."] floating enable
# set floating mode for generated windows # set floating mode for generated windows
@ -41,14 +42,18 @@ for_window [title="Copy Files"] floating enable;
for_window [title="Copy Files"] resize set 600 400 for_window [title="Copy Files"] resize set 600 400
for_window [title="Confirm to replace files"] floating enable; for_window [title="Confirm to replace files"] floating enable;
for_window [title="Confirm to replace files"] move position center for_window [title="Confirm to replace files"] move position center
for_window [title="Choose an Application"] floating enable
for_window [title="Removable medium is inserted"] floating enable
# apply mark for Xwayland and wayland native browser windows # apply mark for Xwayland and wayland native browser windows
for_window [class="Chromium-browser"] mark Browser for_window [class="Chromium-browser"] mark Browser
for_window [class="Brave-browser"] mark Browser for_window [class="Brave-browser"] mark Browser
for_window [class="firefox"] mark Browser for_window [class="firefox"] mark Browser
for_window [class="librewolf"] mark Browser
for_window [app_id="Chromium-browser"] mark Browser for_window [app_id="Chromium-browser"] mark Browser
for_window [app_id="brave-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
for_window [app_id="[Ll]ibrewolf"] mark Browser
# inhibit scrensaver for fullscreen browser windows # inhibit scrensaver for fullscreen browser windows
for_window [con_mark="Browser"] { for_window [con_mark="Browser"] {