mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-08 13:10:37 +00:00
b1335a3628
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
10 lines
209 B
Bash
Executable File
10 lines
209 B
Bash
Executable File
#!/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
|