Compare commits

..

No commits in common. "8518a61bdbb44f88f0f0bd916413b6b945144f83" and "db1c355282e410eaf5823a6e4c67d04e3d3e1450" have entirely different histories.

4 changed files with 14 additions and 37 deletions

View File

@ -15,8 +15,6 @@ set -gx PATH "$PATH:$HOME/.local/bin/deskutils:"
set -gx PATH "$PATH:$HOME/.local/bin/deskutils/soundboard:"
set -gx PATH "$PATH:$HOME/.local/bin/minrss-scripts:"
set -gx PATH "$PATH:$XDG_DATA_HOME/npm/bin"
# Disable fish greeting
set fish_greeting ""

View File

@ -22,6 +22,10 @@ super + grave
ln -sr $SB_DIR $SB_DIR/cur;\
sb-ls.sh
# list currently playing + volume
KP_Enter
find $SB_DIR/ -name "sb-socket*" | sb-vol
# list current directory contents
# super + shift + `
super + asciitilde
@ -29,27 +33,25 @@ super + asciitilde
# start sound
KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
sb-play "{0-9}"
# use a0, a1, a2 instead of 10, 11, 12
# prevents globbing issues
KP_{Divide,Multiply,Delete}
sb-play "a{0-2}"
if [ -z "$SB_DIR" ]; then \
notify-send -u critical -a "soundboard" '$SB_DIR is unset!';\
exit 1;\
fi;\
snd_id="{0-9}";\
id=$(cat /dev/random | base32 | head -c 5);\
socket="$SB_DIR/cur/sb-socket$snd_id-$id";\
mpv --no-resume-playback --input-ipc-server=$socket $SB_DIR/cur/$snd_id*;\
rm -f "$socket"
# stop specific sound
shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\
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
ctrl + shift + KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
snd_id="{0-9}";\
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
ctrl + shift + KP_Subtract
@ -68,22 +70,14 @@ ctrl + KP_Subtract; KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
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-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
ctrl + KP_Add; KP_{Insert,End,Down,Next,Left,Begin,Right,Home,Up,Prior}
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-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
KP_Enter
shift + KP_Delete
find $SB_DIR/ -name "sb-socket*" | sb-msg "stop";\
find $SB_DIR/ -name "sb-socket*" | xargs rm

View File

@ -1,11 +0,0 @@
#!/bin/sh
if [ -z "$SB_DIR" ]; then
notify-send -u critical -a "soundboard" '$SB_DIR is unset!';
exit 1;
fi;
snd_id="$1"
id=$(cat /dev/random | base32 | head -c 5);\
socket="$SB_DIR/cur/sb-socket$snd_id-$id";\
mpv --no-resume-playback --input-ipc-server=$socket $SB_DIR/cur/$snd_id*;\
rm -f "$socket"

View File

@ -28,10 +28,6 @@ export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
# go
export GOPATH="$HOME"/.local/go
# npm
export npm_config_userconfig=$XDG_CONFIG_HOME/npm/config
export npm_config_cache=$XDG_CACHE_HOME/npm
export npm_config_prefix=$XDG_DATA_HOME/npm
# Set default programs
export EDITOR="nvim"