From bc779925a00008abc32941f1a2a430f55c432e34 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Tue, 9 Nov 2021 11:22:12 +0100 Subject: [PATCH] feat(sway): assign programs to workspaces --- configs/sway/config | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/configs/sway/config b/configs/sway/config index 8be843b..774f987 100644 --- a/configs/sway/config +++ b/configs/sway/config @@ -130,10 +130,16 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill # # Workspaces: # - set $ws1 " Code" + assign [class="Alacritty"] $ws1 set $ws2 " Browser" + assign [class="Firefox"] $ws2 + assign [class="Chromium"] $ws2 + assign [class="Google-chrome-beta"] $ws2 + assign [class="Google-chrome"] $ws2 set $ws3 " Music" + assign [class="Spotify"] $ws3 + assign [class="spotify"] $ws3 set $ws4 " Chat" # Switch to workspace @@ -148,10 +154,10 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill bindsym $mod+9 workspace number 9 bindsym $mod+0 workspace number 10 # Move focused container to workspace - bindsym $mod+Shift+1 move container to workspace number 1 - bindsym $mod+Shift+2 move container to workspace number 2 - bindsym $mod+Shift+3 move container to workspace number 3 - bindsym $mod+Shift+4 move container to workspace number 4 + bindsym $mod+Shift+1 move container to workspace $ws1 + bindsym $mod+Shift+2 move container to workspace $ws2 + bindsym $mod+Shift+3 move container to workspace $ws3 + bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 @@ -161,10 +167,8 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill # Note: workspaces can have any name you want, not just numbers. # We just use 1-10 as the default. - assign [class="Firefox"] $ws2 - assign [class="Chromium"] $ws2 - assign [class="Google-chrome-beta"] $ws2 - assign [class="google-chrome"] "" + + # # Layout stuff: #