NGDF/dots/sway/config.d/20-binds

105 lines
2.3 KiB
Plaintext

# Variables for binds.
set {
$mod Mod4
$dirL h
$dirR l
$dirU k
$dirD j
$term footclient
$menu rofi -show run
$files nemo
$lock swaylock
$prompt $HOME/.config/rofi/rofi_session.sh "swaymsg exit"
$capture $HOME/.config/sway/scripts/screenshot.sh
$lang $HOME/.config/sway/scripts/ibus_toggle.sh
}
# Movement
bindsym {
$mod+$dirL focus left
$mod+$dirR focus right
$mod+$dirU focus up
$mod+$dirD focus down
$mod+Shift+$dirL move left
$mod+Shift+$dirR move right
$mod+Shift+$dirU move up
$mod+Shift+$dirD move down
}
bindsym --locked $mod+Shift+i output * dpms on
# Layout
bindsym {
$mod+b splith
$mod+v splitv
$mod+w layout tabbed
$mod+e layout toggle split
$mod+a focus parent
$mod+Shift+a focus child
$mod+f fullscreen
$mod+space focus mode_toggle
$mod+Shift+space floating toggle
$mod+Shift+q kill
}
# System
bindsym --locked {
XF86MonBrightnessDown exec brightnessctl set 10%-
XF86MonBrightnessUp exec brightnessctl set +10%
XF86AudioRaiseVolume exec $XDG_CONFIG_HOME/wob/volume.sh up
XF86AudioLowerVolume exec $XDG_CONFIG_HOME/wob/volume.sh down
XF86AudioMute exec $XDG_CONFIG_HOME/wob/volume.sh mute
XF86AudioMicMute exec $XDG_CONFIG_HOME/wob/volume.sh mic
}
# Launch
bindsym {
$mod+Return exec $term
$mod+o exec $files
$mod+d exec $menu
# $mod+Shift+d exec clipman pick -t rofi
$mod+c exec $capture all
$mod+Ctrl+c exec $capture screen
$mod+Shift+c exec $capture region
$mod+BackSpace exec $lock
}
# Notification controls
bindsym {
$mod+bracketright exec dunstctl close
$mod+Shift+bracketright exec dunstctl close-all
$mod+bracketleft exec dunstctl history-pop
$mod+backslash exec dunstctl set-paused toggle
}
# Music controls
bindsym --locked {
XF86AudioNext exec playerctl next
XF86AudioPrev exec playerctl previous
XF86AudioPlay exec playerctl play-pause
XF86AudioStop exec playerctl stop
$mod+left exec playerctl previous
$mod+right exec playerctl next
$mod+down exec playerctl play-pause
$mod+up exec playerctl play-pause
}
# Window manager.
bindsym {
$mod+Shift+r reload
$mod+Mod1+r restart
$mod+F12 exec $prompt
}
# Misc
bindsym {
$mod+Shift+e exec killall -2 wf-recorder
$mod+Shift+i exec $lang
}
floating_modifier $mod