From 3b27e97cff3d172acdb62b0eb1632d59ed299e3d Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 20 Jan 2021 11:35:54 -0600 Subject: [PATCH] Added Monitor workspace, and related bindings --- .config/sway/common/99-bpytop-monitor.conf | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .config/sway/common/99-bpytop-monitor.conf 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"