diff options
Diffstat (limited to '.config/polybar/media.sh')
| -rw-r--r-- | .config/polybar/media.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/polybar/media.sh b/.config/polybar/media.sh new file mode 100644 index 0000000..38f8d55 --- /dev/null +++ b/.config/polybar/media.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +status=$(playerctl status) +title=$(playerctl metadata title) +artist=$(playerctl metadata artist) + +if [ $status = "Playing" ] +then + echo " $title - $artist" +elif [ $status = "Paused" ] +then + echo " $title - $artist" +fi |
