added bin/ scripts, created cdg
This commit is contained in:
9
bin/playpause
Executable file
9
bin/playpause
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
playing=($(mpc | grep "^\[playing\]"))
|
||||
|
||||
if [ ! -z "$playing" ]; then
|
||||
mpc -q pause;
|
||||
else
|
||||
mpc -q play;
|
||||
fi
|
||||
Reference in New Issue
Block a user