# move the currently focused window to the scratchpad
bindsym $sup+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $sup+minus scratchpad show
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
#! Workspaces
set $ws1 "1: main"
set $ws2 "2: browse"
set $ws3 "3: term"
set $ws4 "4: other"
set $ws5 "5: other"
set $ws6 "6: other"
set $ws7 "7: other"
set $ws8 "8: business"
set $ws9 "9: talk"
set $ws10 "10: misc"
#! Assignments
assign [class="Spotify"] $ws10
assign [class="firefox"] $ws2
assign [class="thunderbird"] $ws8
assign [class="discord"] $ws9
assign [class="jetbrains-idea-ce"] $ws1
bindsym $sup+$left workspace prev
bindsym $sup+$right workspace next
# alter.. youknow what is coming
bindsym $sup+Left workspace prev
bindsym $sup+Right workspace next
# switch to workspace
bindsym $sup+1 workspace number $ws1
bindsym $sup+2 workspace number $ws2
bindsym $sup+3 workspace number $ws3
bindsym $sup+4 workspace number $ws4
bindsym $sup+5 workspace number $ws5
bindsym $sup+6 workspace number $ws6
bindsym $sup+7 workspace number $ws7
bindsym $sup+8 workspace number $ws8
bindsym $sup+9 workspace number $ws9
bindsym $sup+0 workspace number $ws10
# move focused container to workspace
bindsym $sup+Shift+1 move container to workspace number $ws1
bindsym $sup+Shift+2 move container to workspace number $ws2
bindsym $sup+Shift+3 move container to workspace number $ws3
bindsym $sup+Shift+4 move container to workspace number $ws4
bindsym $sup+Shift+5 move container to workspace number $ws5
bindsym $sup+Shift+6 move container to workspace number $ws6
bindsym $sup+Shift+7 move container to workspace number $ws7
bindsym $sup+Shift+8 move container to workspace number $ws8
bindsym $sup+Shift+9 move container to workspace number $ws9
bindsym $sup+Shift+0 move container to workspace number $ws10
#! sway manage
# reload the configuration file
bindsym $sup+Shift+c reload
# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
bindsym $sup+Shift+r restart
# exit sway (logs you out of your X session)
bindsym $sup+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your X session.' -B 'Yes, exit sway' 'sway exit'"