2020-01-20 14:35:29 -05:00

93 lines
2.2 KiB
Plaintext

# The Simple X Hotkey Daemon is the program used by LARBS to map most of the
# i3 independent commands. This file is pretty readable, so I'll let you read
# it.
# The keys NOT bound here by sxhkd, but by i3 are:
# The t thru p keys on the top row
# The f thru ; keys on the home row
# The b key on the bottom row (hides the bar in either case)
# Basic binds
super + Return
$TERMINAL tmuxdd
super + shift + Return
samedir
super + shift + a
$TERMINAL -e alsamixer; pkill -RTMIN+10 $STATUSBAR
super + b
polybar-msg cmd toggle
super + c
code
super + shift + c
mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title='mpvfloat' /dev/video0
super + d
dmenu_run
super + m
spotify
super + n
nautilus
super + shift + q
kill -9 `xdotool getwindowfocus getwindowpid`
super + r
$TERMINAL -e $FILE
super + w
$TERMINAL -e sudo nmtui
super + shift + w
$BROWSER
super + grave
dmenuunicode
super + Scroll_Lock
ifinstalled screenkey && (killall screenkey || screenkey)
super + Insert
showclip
super + x
ifinstalled i3lock && i3lock --color 000000 --show-failed-attempts --radius 120 --ring-width 10.0
super + shift + x
prompt "Shutdown computer?" "sudo -A shutdown -h now"
super + shift + BackSpace
prompt "Reboot computer?" "sudo -A reboot"
super + shift + Escape
prompt 'Leave Xorg?' 'killall Xorg'
# Recording
# Take screenshot
Print
maim pic-full-$(date '+%y%m%d-%H%M-%S').png
# Pick screenshot type
shift + Print
maimpick
# Print: Record audio or video; Del: kill recording
super + Print
dmenurecord
super + Delete
dmenurecord kill
alt + shift + escape
pkill -USR1 -x sxhkd
# Volume
# Increase volume
super {_,shift +} + plus
amixer sset Master {5,15}%+
# Decrease volume
super {_,shift +} + minus
amixer sset Master {5,15}%-
super + shift + m
amixer sset Master toggle
# Function keys
# Show readme
super + F1
groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -
# F2 restarts either dwm or i3 and is bound in each.
# Change display
super + F3
displayselect
# Hibernate
super + F4
prompt 'Hibernate computer?' 'sudo -A zzz -Z'
super + F5
killall screenkey || screenkey
# Mount a USB drive or Android device
super + {F9,F10}
{dmenumount,dmenuumount}