diff --git a/.config/sway/common/99-bpytop-monitor.conf b/.config/sway/common/99-bpytop-monitor.conf new file mode 100644 index 0000000..5f60409 --- /dev/null +++ b/.config/sway/common/99-bpytop-monitor.conf @@ -0,0 +1,23 @@ +# Sway Config: Monitor workspace +# +# Thurstylark + +# Workspace name +set $ws-monitor Monitor +# Workspace key +set $ws-monitor-key Print + +# Switch output to workspace +bindsym $mod+$ws-monitor-key workspace $ws-monitor + +# Move focused container to workspace +bindsym $mod+Shift+$ws-monitor-key move container to workspace $ws-monitor + +# Window with custom app_id should be moved to Monitor workspace, and fullscreened +for_window [app_id="bpytop"] { + move container to workspace $ws-monitor + fullscreen enable +} + +# Launch bpytop with custom app_id +bindsym $mod+Alt+$ws-monitor-key exec "alacritty --class bpytop -e bpytop"