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