dotfiles/config/sway/config.d/70-bindings.conf

99 lines
3.3 KiB
Text

# Sway
bindsym $mod+Shift+q kill
bindsym $mod+Shift+r reload
bindsym $mod+Shift+e exec --no-startup-id swaymsg exit
bindsym $mod+Mod1+l exec swaylock
# Launchers
bindsym $mod+Return exec $term
bindsym $mod+d exec $menu
bindsym $mod+F1 exec $browser
bindsym $mod+F2 exec $joplin
bindsym $mod+F3 exec $bitwarden
bindsym $mod+F4 exec $matrix
bindsym $mod+F5 exec $discord
bindsym $mod+F6 exec $deezer
# Windows
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+q focus parent
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
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
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+minus workspace number 6
bindsym $mod+egrave workspace number 7
bindsym $mod+underscore workspace number 8
bindsym $mod+ccedilla workspace number 9
bindsym $mod+agrave workspace number 10
bindsym $mod+Shift+ampersand move container to workspace number 1
bindsym $mod+Shift+eacute move container to workspace number 2
bindsym $mod+Shift+quotedbl move container to workspace number 3
bindsym $mod+Shift+apostrophe move container to workspace number 4
bindsym $mod+Shift+parenleft move container to workspace number 5
bindsym $mod+Shift+minus move container to workspace number 6
bindsym $mod+Shift+egrave move container to workspace number 7
bindsym $mod+Shift+underscore move container to workspace number 8
bindsym $mod+Shift+ccedilla move container to workspace number 9
bindsym $mod+Shift+agrave move container to workspace number 10
# Layouts
bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
# Control
bindsym XF86AudioLowerVolume exec swayosd-client --output-volume=lower
bindsym XF86AudioRaiseVolume exec swayosd-client --output-volume=raise
bindsym XF86AudioMute exec swayosd-client --output-volume=mute-toggle
bindsym XF86MonBrightnessUp exec swayosd-client --brightness=raise
bindsym XF86MonBrightnessDown exec swayosd-client --brightness=lower
# Modes
# Resize
mode "resize" {
bindsym $left resize shrink width 40px
bindsym $down resize grow height 40px
bindsym $up resize shrink height 40px
bindsym $right resize grow width 40px
bindsym Left resize shrink width 40px
bindsym Down resize grow height 40px
bindsym Up resize shrink height 40px
bindsym Right resize grow width 40px
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Screenshots
bindsym Print exec --no-startup-id glurp full clip
bindsym Shift+Print exec glurp area clip
bindsym Mod1+Print exec --no-startup-id glurp full file
bindsym Mod1+Shift+Print exec glurp area file
# When locked
bindsym --locked XF86Display exec --no-startup-id togglescreen