soundboard: add missing features for new keys

This commit is contained in:
dogeystamp 2023-01-03 13:40:15 -05:00
parent 9fa0d6c1c0
commit 630db7f6c8
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -22,10 +22,6 @@ super + grave
ln -sr $SB_DIR $SB_DIR/cur;\ ln -sr $SB_DIR $SB_DIR/cur;\
sb-ls.sh sb-ls.sh
# list currently playing + volume
KP_Enter
find $SB_DIR/ -name "sb-socket*" | sb-vol
# list current directory contents # list current directory contents
# super + shift + ` # super + shift + `
super + asciitilde super + asciitilde
@ -34,19 +30,26 @@ super + asciitilde
# start sound # start sound
KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior} KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
sb-play "{0-9}" sb-play "{0-9}"
# use a0, a1, a2 instead of 10, 11, 12
# prevents globbing issues
KP_{Divide,Multiply,Delete} KP_{Divide,Multiply,Delete}
sb-play "1{0-2}" sb-play "a{0-2}"
# stop specific sound # stop specific sound
shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior} shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\ snd_id="{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "stop" ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "stop"
shift + KP_{Divide,Multiply,Delete}
snd_id="a{0-2}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "stop"
# loop specific sound # loop specific sound
ctrl + shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior} ctrl + shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\ snd_id="{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "set loop inf" ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "set loop inf"
ctrl + shift + KP_{Divide,Multiply,Delete}
snd_id="a{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "set loop inf"
# reduce volume of current dir # reduce volume of current dir
ctrl + shift + KP_Subtract ctrl + shift + KP_Subtract
@ -65,14 +68,22 @@ ctrl + KP_Subtract; KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\ snd_id="{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "add volume -10";\ ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "add volume -10";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-vol ls $SB_DIR/cur/sb-socket$snd_id-* | sb-vol
ctrl + KP_Subtract; KP_{Divide,Multiply,Delete}
snd_id="a{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "add volume -10";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-vol
# increase volume of specific sound # increase volume of specific sound
ctrl + KP_Add; KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior} ctrl + KP_Add; KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\ snd_id="{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "add volume +10";\ ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "add volume +10";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-vol ls $SB_DIR/cur/sb-socket$snd_id-* | sb-vol
ctrl + KP_Add; KP_{Divide,Multiply,Delete}
snd_id="a{0-9}";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-msg "add volume +10";\
ls $SB_DIR/cur/sb-socket$snd_id-* | sb-vol
# stop all sounds # stop all sounds
shift + KP_Delete KP_Enter
find $SB_DIR/ -name "sb-socket*" | sb-msg "stop";\ find $SB_DIR/ -name "sb-socket*" | sb-msg "stop";\
find $SB_DIR/ -name "sb-socket*" | xargs rm find $SB_DIR/ -name "sb-socket*" | xargs rm