From 7d4ea447f647b004548cf2a2b26eae746c59b910 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 1 Oct 2022 18:58:01 -0400 Subject: [PATCH] sxhkd: Add configs --- src/.config/sxhkd/sxhkdrc | 22 ++++++++++++++++++++++ src/.profile | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 src/.config/sxhkd/sxhkdrc diff --git a/src/.config/sxhkd/sxhkdrc b/src/.config/sxhkd/sxhkdrc new file mode 100644 index 0000000..d43ce4e --- /dev/null +++ b/src/.config/sxhkd/sxhkdrc @@ -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 diff --git a/src/.profile b/src/.profile index de5a6fd..998b3e2 100644 --- a/src/.profile +++ b/src/.profile @@ -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"