shrink some windows that look stupid fullscreen, change ff and tb to app_id match

This commit is contained in:
Alex Kelly 2024-11-29 16:11:44 -05:00
parent f0d73ff8f9
commit 0a0ec0242b

View file

@ -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