Removed commit history
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
commit
b1335a3628
199 changed files with 36930 additions and 0 deletions
9
home/Scripts/metadata.sh
Executable file
9
home/Scripts/metadata.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
ARTIST=$(playerctl metadata | grep 'xesam:artist' | cut -d' ' -f5- | sed 's/^[ \t]*//')
|
||||
TITLE=$(playerctl metadata title)
|
||||
|
||||
if [ -n "$ARTIST" ]; then
|
||||
echo "$ARTIST - $TITLE"
|
||||
else
|
||||
echo "$TITLE"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue