diff options
| author | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
| commit | 3b948427617980b8f5ecd8e59bcb151d73884937 (patch) | |
| tree | ae6f34d5dcc44d52a4809f3d49c9af4b2819567c /.config/polybar/media.sh | |
| parent | f405a75693795f569df75108feb02cacab0ea8f6 (diff) | |
Polybar
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 |
