Reroganize repository

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-12 21:41:12 +01:00
parent 0a4424d25e
commit cd781c174e
40 changed files with 113 additions and 22 deletions

View file

@ -1,18 +0,0 @@
#!/bin/bash
# music.sh
QUERY="$(cmus-remote -Q)"
STATUS="$(echo "$QUERY" | grep -e "status " | cut -d " " -f 2)"
ARTIST="$(echo "$QUERY" | grep -e " artist " | cut -d " " -f 3-)"
TITLE="$(echo "$QUERY" | grep -e " title " | cut -d " " -f 3-)"
OUTPUT="$ARTIST - $TITLE"
if [ "$STATUS" != "playing" ]; then
OUTPUT="Not playing"
fi
# Escaping the & character
OUTPUT="${OUTPUT/\&/\&amp\;}"
echo -e "$OUTPUT"