From 9c504cd8639c82d476c2af41796743185ffd706a Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Wed, 3 Dec 2025 10:00:41 -0500 Subject: Add i3 --- .config/i3/music.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .config/i3/music.sh (limited to '.config/i3/music.sh') 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 -- cgit v1.3-2-g0d8e