2022-04-19 04:45:01 +00:00
|
|
|
# vim: ft=sh
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Default workspaces
|
|
|
|
################################################################################
|
|
|
|
|
2022-05-27 21:08:34 +00:00
|
|
|
assign [class="Mattermost"] 1
|
2022-08-23 16:44:58 +00:00
|
|
|
assign [class="Rocket.Chat"] 1
|
2022-04-19 04:45:01 +00:00
|
|
|
assign [class="UXTerm"] grave
|
2022-09-17 19:05:37 +00:00
|
|
|
assign [class="Thunderbird"] 2
|
2022-08-23 16:44:58 +00:00
|
|
|
assign [app_id="thunderbird"] 2
|
2022-04-19 04:45:01 +00:00
|
|
|
assign [class="Chromium"] 3
|
|
|
|
assign [class="Linphone"] 5
|
2022-09-17 19:05:37 +00:00
|
|
|
assign [class="firefox"] 7
|
2022-08-23 16:44:58 +00:00
|
|
|
assign [app_id="firefox"] 7
|
2022-07-21 03:38:03 +00:00
|
|
|
assign [app_id="com.github.gittyup.Gittyup"] 9
|
|
|
|
|
2022-04-19 04:45:01 +00:00
|
|
|
# Don't use VNC viewer anymore. I've defaulted to running virt-manager on this workspace because it's similar
|
|
|
|
#assign [class="Vncviewer"] 9
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Floating windows
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
for_window [shell="xdg_shell"] floating enable # Picture-in-picture firefox
|
|
|
|
# Also make Picture-in-picture windows stick to active workspace
|
|
|
|
for_window [shell="xdg_shell"] sticky enable # Picture-in-picture firefox
|
|
|
|
for_window [instance="Download"] floating enable
|
|
|
|
for_window [window_role="plugin_ui"] floating enable
|
|
|
|
for_window [title="Menu Update"] floating enable
|
|
|
|
for_window [title="___"] floating enable
|
2022-05-27 04:32:59 +00:00
|
|
|
for_window [class="UXTerm"] floating enable, resize set height 600px, resize set width 800px, move position 1120px 480px
|
2022-04-19 04:45:01 +00:00
|
|
|
for_window [class="Tlpui"] floating enable
|
|
|
|
for_window [title="XTerm"] floating enable
|
|
|
|
for_window [class="Gvim"] floating enable
|
|
|
|
for_window [class="Orage"] floating enable
|
|
|
|
for_window [class="Claws-mail"] layout stacking
|
|
|
|
for_window [class="Vncviewer"] fullscreen enable
|
2022-07-23 08:04:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Window titles
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Mark legacy windows running in Xwayland
|
|
|
|
for_window [shell="."] title_format "%title (%app_id)"
|
|
|
|
for_window [shell="xwayland"] title_format "%title [XWayland]"
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Misc behaviour
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Maintain 'urgency' for 1 second
|
|
|
|
force_display_urgency_hint 1000 ms
|
|
|
|
|
|
|
|
# Move cursor to center of container when switching
|
|
|
|
mouse_warping container
|
|
|
|
|
|
|
|
# Restore display configuration on reload
|
|
|
|
bindswitch --reload lid:on /home/jpm/scripts/sway/displays.pl detached
|
|
|
|
|
|
|
|
# Rotate screen and toggle OSK on tablet mode change
|
|
|
|
bindswitch --reload tablet:on busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true; swaymsg output eDP-1 rotate 270
|
|
|
|
bindswitch --reload tablet:off busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false; swaymsg output eDP-1 rotate 0
|