From 0a0ec0242b84b85a33c244a88fdc2da624fe72e0 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Fri, 29 Nov 2024 16:11:44 -0500 Subject: [PATCH] shrink some windows that look stupid fullscreen, change ff and tb to app_id match --- conf.d/window_rules.conf | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/conf.d/window_rules.conf b/conf.d/window_rules.conf index 67c9d9e..1107620 100644 --- a/conf.d/window_rules.conf +++ b/conf.d/window_rules.conf @@ -3,9 +3,12 @@ for_window [app_id=".*"] title_window_icon on for_window [class=".*"] title_window_icon on for_window [class=".*"] title_window_icon padding 1px -for_window [urgent="latest" app_id="firefox" workspace=$ws1] focus ; workspace number $ws1 -for_window [app_id="firefox"] border pixel 0 +for_window [urgent="latest" app_id="org.mozilla.firefox" workspace=$ws1] focus ; workspace number $ws1 +for_window [app_id="org.mozilla.firefox"] border pixel 0 for_window [app_id="org.gnome.Calculator"] floating enable +for_window [app_id="org.mozilla.thunderbird" title=".*Reminder.*"] floating enable, resize set width 800 height 600 +for_window [title="(?:Open|Save) (?:File|Folder|As)"] floating enable, resize set width 1030 height 710 +for_window [app_id="nm-openconnect-auth-dialog"] floating enable, resize set width 1030 height 710 assign [class="Spotify"] workspace number $ws5 assign [instance="spotify"] workspace number $ws5 assign [class="teams-for-linux"] workspace number $ws2 @@ -14,5 +17,17 @@ assign [instance="logseq"] workspace number $ws6 assign [class="jetbrains-pycharm"] workspace number $ws4 assign [class="jetbrains-phpstorm"] workspace number $ws4 assign [class="Slack"] workspace number $ws2 -assign [class="thunderbird"] workspace number $ws6 +assign [app_id="org.mozilla.thunderbird"] workspace number $ws6 assign [class="Joplin"] workspace number $ws6 + + +#Default floating (copied from https://github.com/jjquin/swayarch/blob/master/.config/sway/config.d/window_rules) +for_window [window_role="pop-up"] floating enable +for_window [window_role="bubble"] floating enable +for_window [window_role="task_dialog"] floating enable +for_window [window_role="Preferences"] floating enable +for_window [window_type="dialog"] floating enable +for_window [window_type="menu"] floating enable +for_window [instance="update_installer"] floating enable +for_window [window_type="notification"] floating enable +for_window [class="Plexamp"] floating enable, border normal 2, resize set width 800 height 600