sway-config/conf.d/window_rules.conf

33 lines
1.9 KiB
Text

# specify window display rules
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="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
assign [class="Microsoft-edge" title="Microsoft Teams.*"] workspace number $ws2
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 [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