sxhkd: Add configs

This commit is contained in:
dogeystamp 2022-10-01 18:58:01 -04:00
parent 39fc4d79a0
commit 7d4ea447f6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 24 additions and 0 deletions

22
src/.config/sxhkd/sxhkdrc Normal file
View File

@ -0,0 +1,22 @@
# Soundboard setup
# "Boxes" labelled 0-9 in ~/med/sb2/
# Each one has files/symlinks 0-9
super + {0-9}
unlink ~/med/sb/cur;\
ln -sr ~/med/sb/{0-9} ~/med/sb/cur;\
rm /tmp/sb-socket*
KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\
id=$(cat /dev/random | base32 | head -c 5);\
socket="/tmp/sb-socket$snd_id-$id";\
mpv --input-ipc-server=$socket ~/med/sb/cur/$snd_id*;\
rm $socket
shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\
ls /tmp/sb-socket$snd_id-* |\
while read -r socket; do \
echo {"stop"} | socat - $socket;\
done

View File

@ -35,6 +35,8 @@ export BROWSER="qutebrowser"
export MANPAGER='nvim +Man!'
export MANWIDTH=999
export SXHKD_SHELL='/bin/sh'
# Variables for passphrase2pgp
export REALNAME="dogeystamp"
export EMAIL="dogeystamp@disroot.org"