feat(sway): assign programs to workspaces

This commit is contained in:
max_richter 2021-11-09 11:22:12 +01:00
parent 2fe7f127e5
commit bc779925a0

View File

@ -130,10 +130,16 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill
# #
# Workspaces: # Workspaces:
# #
set $ws1 " Code" set $ws1 " Code"
assign [class="Alacritty"] $ws1
set $ws2 " Browser" 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" set $ws3 " Music"
assign [class="Spotify"] $ws3
assign [class="spotify"] $ws3
set $ws4 " Chat" set $ws4 " Chat"
# Switch to workspace # 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+9 workspace number 9
bindsym $mod+0 workspace number 10 bindsym $mod+0 workspace number 10
# Move focused container to workspace # Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace number 3 bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace number 4 bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7 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. # Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default. # 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: # Layout stuff:
# #