127 lines
2.6 KiB
Plaintext
127 lines
2.6 KiB
Plaintext
# Sway config: Key bindings
|
|
#
|
|
# Thurstylark
|
|
|
|
|
|
#
|
|
## Main ##
|
|
#
|
|
|
|
# Start a terminal
|
|
bindsym $mod+Return exec $term
|
|
|
|
# Kill focused window
|
|
bindsym $mod+Shift+q kill
|
|
|
|
# Start your launcher
|
|
bindsym $mod+d exec $menu
|
|
|
|
# Drag windows: $mod+mouse1
|
|
# Resize windows: $mod+mouse2
|
|
# Despite the name, also works for non-floating windows.
|
|
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 exit
|
|
|
|
# Lock Screen
|
|
# See 11-idle_lock.conf for locker definition
|
|
bindsym $mod+Mod1+l exec "$locker"
|
|
|
|
# Suspend the whole system
|
|
bindsym $mod+Mod1+s exec "systemctl suspend"
|
|
|
|
# Passmenu
|
|
# (using aur/bemenu-dmenu to use dmenu without patching passmenu)
|
|
bindsym $mod+p exec passmenu
|
|
|
|
|
|
## Display brightness
|
|
# Requires light(1)
|
|
bindsym --locked XF86MonBrightnessUp exec --no-startup-id "light -A 2"
|
|
bindsym --locked XF86MonBrightnessDown exec --no-startup-id "light -U 2"
|
|
|
|
|
|
## Media Keys
|
|
# Volume
|
|
bindsym --locked XF86AudioMute exec --no-startup-id \
|
|
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
|
bindsym --locked XF86AudioRaiseVolume exec --no-startup-id \
|
|
"pactl set-sink-volume @DEFAULT_SINK@ +5%"
|
|
bindsym --locked XF86AudioLowerVolume exec --no-startup-id \
|
|
"pactl set-sink-volume @DEFAULT_SINK@ -5%"
|
|
# Playhead
|
|
bindsym --locked XF86AudioPlay exec \
|
|
"playerctl play-pause"
|
|
bindsym --locked XF86AudioNext exec \
|
|
"playerctl next"
|
|
bindsym --locked XF86AudioPrev exec \
|
|
"playerctl previous"
|
|
|
|
|
|
#
|
|
## Layout ##
|
|
#
|
|
# See: ./21-layout.conf
|
|
|
|
# respectively.
|
|
bindsym $mod+b splitv
|
|
bindsym $mod+v splith
|
|
|
|
# Switch the current container between different layout styles
|
|
bindsym $mod+s layout stacking
|
|
bindsym $mod+w layout tabbed
|
|
bindsym $mod+e layout toggle split
|
|
|
|
# Make the current focus fullscreen
|
|
bindsym $mod+f fullscreen
|
|
|
|
# Toggle the current focus between tiling and floating mode
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
# Swap focus between the tiling area and the floating area
|
|
bindsym $mod+space focus mode_toggle
|
|
|
|
# Move focus to the parent container
|
|
bindsym $mod+a focus parent
|
|
|
|
|
|
#
|
|
## Movement ##
|
|
#
|
|
# See: ./22-movement.conf
|
|
|
|
|
|
#
|
|
## Resize Mode ##
|
|
#
|
|
# See: ./23-resizemode.inc
|
|
|
|
# Because the mode needs to be configured before the keybinding:
|
|
include ./23-resizemode.inc
|
|
|
|
# Enter resize mode
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
|
#
|
|
## Workspaces ##
|
|
#
|
|
# See: ./24-workspaces.conf
|
|
|
|
|
|
#
|
|
## Scratchpad ##
|
|
#
|
|
|
|
# Move the currently focused window to the scratchpad
|
|
bindsym $mod+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 $mod+minus scratchpad show
|
|
|