added bin/ scripts, created cdg

This commit is contained in:
2015-05-27 20:24:12 -07:00
parent 50228d94ae
commit 8f6dfcca30
9 changed files with 54 additions and 0 deletions

9
bin/playpause Executable file
View 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