2023-11-27 10:33:02 -05:00
|
|
|
# specify window display rules
|
|
|
|
|
2024-03-01 16:29:45 -05:00
|
|
|
for_window [app_id=".*"] title_window_icon on
|
2023-11-27 10:33:02 -05:00
|
|
|
for_window [class=".*"] title_window_icon on
|
|
|
|
for_window [class=".*"] title_window_icon padding 1px
|
2024-11-29 16:11:44 -05:00
|
|
|
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
|
2023-11-27 10:33:02 -05:00
|
|
|
for_window [app_id="org.gnome.Calculator"] floating enable
|
2024-11-29 16:11:44 -05:00
|
|
|
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
|
2024-03-01 16:29:45 -05:00
|
|
|
assign [class="Spotify"] workspace number $ws5
|
|
|
|
assign [instance="spotify"] workspace number $ws5
|
|
|
|
assign [class="teams-for-linux"] workspace number $ws2
|
|
|
|
assign [class="Microsoft-edge" title="Microsoft Teams.*"] workspace number $ws2
|
|
|
|
assign [instance="logseq"] workspace number $ws6
|
|
|
|
assign [class="jetbrains-pycharm"] workspace number $ws4
|
2024-03-08 22:53:05 -05:00
|
|
|
assign [class="jetbrains-phpstorm"] workspace number $ws4
|
2024-03-01 16:29:45 -05:00
|
|
|
assign [class="Slack"] workspace number $ws2
|
2024-11-29 16:11:44 -05:00
|
|
|
assign [app_id="org.mozilla.thunderbird"] workspace number $ws6
|
2024-03-01 16:29:45 -05:00
|
|
|
assign [class="Joplin"] workspace number $ws6
|
2024-11-29 16:11:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
#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
|