|
|
|
# -*- conf -*-
|
|
|
|
|
|
|
|
#--- General ---#
|
|
|
|
|
|
|
|
# Start a terminal
|
|
|
|
super + Return
|
|
|
|
$TERMINAL
|
|
|
|
|
|
|
|
# Start rofi (program launcher)
|
|
|
|
super + d
|
|
|
|
rofi -show run
|
|
|
|
|
|
|
|
# mpv
|
|
|
|
super + {_,shift} + m
|
|
|
|
mpv.sh {_,queue}
|
|
|
|
|
|
|
|
#--- Control ---#
|
|
|
|
|
|
|
|
# Reload sxhkd config
|
|
|
|
super + ctrl + r
|
|
|
|
pkill -USR1 -x sxhkd && notify-send -t 1000 "sxhkd reloaded."
|
|
|
|
|
|
|
|
# Lock
|
|
|
|
super + alt + s
|
|
|
|
$HOME/.scripts/wm/lock.sh
|
|
|
|
|
|
|
|
# Shutdown
|
|
|
|
super + shift + s
|
|
|
|
prompt.sh "Shutdown computer?" "poweroff"
|
|
|
|
|
|
|
|
# Reboot
|
|
|
|
super + shift + w
|
|
|
|
prompt.sh "Reboot computer?" "reboot"
|
|
|
|
|
|
|
|
# Screen brightness
|
|
|
|
super + {F2,F3}
|
|
|
|
brictl.sh {dec,inc} 10
|
|
|
|
|
|
|
|
# Screenshot (fullscreen, selection, focused window)
|
|
|
|
{_,shift,super} + @Print
|
|
|
|
scrot {_,-s,-u} -e "mv \$f $CAPTURE"
|
|
|
|
|
|
|
|
# Screen record
|
|
|
|
ctrl + @Print
|
|
|
|
alias.sh screencast "$CAPTURE/$(date '+%Y-%m-%d-%H%M%S_1500x1000_screencast')"
|
|
|
|
|
|
|
|
# Volume
|
|
|
|
XF86Audio{LowerVolume,RaiseVolume,Mute}
|
|
|
|
volctl.sh {dec 5,inc 5,toggle}
|
|
|
|
|
|
|
|
# Touchpad toggle
|
|
|
|
XF86HomePage
|
|
|
|
inputctl.sh -d toggle
|
|
|
|
|
|
|
|
# Touchscreen toggle
|
|
|
|
XF86Search
|
|
|
|
inputctl.sh -s toggle
|
|
|
|
|
|
|
|
#--- Mouse ---#
|
|
|
|
|
|
|
|
# Front side button
|
|
|
|
button9
|
|
|
|
xdotool key "Home"
|
|
|
|
|
|
|
|
# Back side button
|
|
|
|
button8
|
|
|
|
xdotool keydown "Control_L" key "r" keyup "Control_L"
|