Compare commits
No commits in common. "8518a61bdbb44f88f0f0bd916413b6b945144f83" and "db1c355282e410eaf5823a6e4c67d04e3d3e1450" have entirely different histories.
8518a61bdb
...
db1c355282
@ -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/deskutils/soundboard:"
|
||||||
set -gx PATH "$PATH:$HOME/.local/bin/minrss-scripts:"
|
set -gx PATH "$PATH:$HOME/.local/bin/minrss-scripts:"
|
||||||
|
|
||||||
set -gx PATH "$PATH:$XDG_DATA_HOME/npm/bin"
|
|
||||||
|
|
||||||
# Disable fish greeting
|
# Disable fish greeting
|
||||||
set fish_greeting ""
|
set fish_greeting ""
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@ 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
|
||||||
@ -29,27 +33,25 @@ 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}"
|
if [ -z "$SB_DIR" ]; then \
|
||||||
# use a0, a1, a2 instead of 10, 11, 12
|
notify-send -u critical -a "soundboard" '$SB_DIR is unset!';\
|
||||||
# prevents globbing issues
|
exit 1;\
|
||||||
KP_{Divide,Multiply,Delete}
|
fi;\
|
||||||
sb-play "a{0-2}"
|
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
|
# 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
|
||||||
@ -68,22 +70,14 @@ 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
|
||||||
KP_Enter
|
shift + KP_Delete
|
||||||
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
|
||||||
|
@ -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"
|
|
@ -28,10 +28,6 @@ export TERMINFO="$XDG_DATA_HOME"/terminfo
|
|||||||
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
|
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
|
||||||
# go
|
# go
|
||||||
export GOPATH="$HOME"/.local/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
|
# Set default programs
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user