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 | 9c504cd8639c82d476c2af41796743185ffd706a (patch) | |
| tree | dca0f9f7c5347b7f0798b13d99b1b0df4d9a4ef0 /.config/i3/music.sh | |
| parent | ceb1360704f390862eecbd405d3837f9c42f1baa (diff) | |
Add i3
Diffstat (limited to '.config/i3/music.sh')
| -rw-r--r-- | .config/i3/music.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/i3/music.sh b/.config/i3/music.sh new file mode 100644 index 0000000..d678ed1 --- /dev/null +++ b/.config/i3/music.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +status=$(playerctl status) +song=$(playerctl metadata title) +album=" (`playerctl metadata album`)" + +if [ "$album" == " ()" ] +then + album="" +fi + +if [ $status = "Playing" ] +then + echo " Playing | $song$album by $(playerctl metadata artist) " +elif [ $status = "Paused" ] +then + echo " Paused | $song$album by $(playerctl metadata artist) " +else + echo " Stopped " +fi
\ No newline at end of file |
