initial commit

This commit is contained in:
Tristan
2017-06-06 18:02:21 +02:00
commit 178bfef951
481 changed files with 43275 additions and 0 deletions

25
.i3/scripts/mpd_status.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
SONG=$(mpc current)
for i in $(mpc --format ""); do
a=$i
break
done
case $BLOCK_BUTTON in
2) mpc toggle ;;
1) mpc prev ;;
3) mpc next ;;
esac
if [ -z "$SONG" ]; then
OUT="<span foreground='#CC0033'></span>"
else
if [ $a = "[playing]" ]; then
OUT="<span foreground='#00CC33'></span>"
else
OUT="<span foreground='#CC0033'></span>"
fi
OUT="$OUT <span foreground='#6484C7'>$SONG</span>"
fi
echo $OUT