# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# reload the configuration file
bindsym $mod+Shift+c reload
# exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
# lock screen
bindsym $mod+o exec $lock
bindswitch lid:on exec $lock
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# _move_ the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# switch to workspace
bindsym $mod+ampersand workspace number 1
bindsym $mod+eacute workspace number 2
bindsym $mod+quotedbl workspace number 3
bindsym $mod+apostrophe workspace number 4
bindsym $mod+parenleft workspace number 5
bindsym $mod+section workspace number 6
bindsym $mod+egrave workspace number 7
bindsym $mod+exclam workspace number 8
bindsym $mod+ccedilla workspace number 9
bindsym $mod+agrave workspace number 10
bindsym $mod+parenright workspace number 11
# Rehab for switching around workspaces all the time
#bindsym $mod+ampersand exec "sleep 1; swaymsg 'workspace number 1'"
#bindsym $mod+eacute exec "sleep 1; swaymsg 'workspace number 2'"
#bindsym $mod+quotedbl exec "sleep 1; swaymsg 'workspace number 3'"
#bindsym $mod+apostrophe exec "sleep 1; swaymsg 'workspace number 4'"
#bindsym $mod+parenleft exec "sleep 1; swaymsg 'workspace number 5'"
#bindsym $mod+section exec "sleep 1; swaymsg 'workspace number 6'"
#bindsym $mod+egrave exec "sleep 1; swaymsg 'workspace number 7'"
#bindsym $mod+exclam exec "sleep 1; swaymsg 'workspace number 8'"
#bindsym $mod+ccedilla exec "sleep 1; swaymsg 'workspace number 9'"
#bindsym $mod+agrave exec "sleep 1; swaymsg 'workspace number 10'"
#bindsym $mod+parenright exec "sleep 1; swaymsg 'workspace number 11'"
# move focused container to workspace
bindsym $mod+1 move container to workspace number 1
bindsym $mod+2 move container to workspace number 2
bindsym $mod+3 move container to workspace number 3
bindsym $mod+4 move container to workspace number 4
bindsym $mod+5 move container to workspace number 5
bindsym $mod+6 move container to workspace number 6
bindsym $mod+7 move container to workspace number 7
bindsym $mod+8 move container to workspace number 8
bindsym $mod+9 move container to workspace number 9
bindsym $mod+0 move container to workspace number 10
bindsym $mod+degree move container to workspace number 11