Reroganize repository
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
0a4424d25e
commit
cd781c174e
40 changed files with 113 additions and 22 deletions
|
@ -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/\&/\&\;}"
|
||||
|
||||
echo -e " $OUTPUT"
|
Loading…
Add table
Add a link
Reference in a new issue