From 1a494a95e6436f90d3dfc1ca7647eafcc94e5034 Mon Sep 17 00:00:00 2001 From: Inqiyad Sabr Date: Thu, 30 Oct 2025 20:55:07 +0600 Subject: Add cmus-status script which cmus module uses To be honest all the hard work is done with the script than the cmus module itself lol, that's UNIX philosophy for ya --- cmus-status | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 cmus-status diff --git a/cmus-status b/cmus-status new file mode 100755 index 0000000..0afbc47 --- /dev/null +++ b/cmus-status @@ -0,0 +1,19 @@ +#!/bin/sh +# :set status_display_program=cmus-status +# copy this program to one of the $PATH +file="/tmp/cmus-status" +printf "" > $file # refresh +[ $# = 2 ] &&\ + printf "󰓛" > $file &&\ + exit 0 +if [ "$2" = "playing" ]; +then s="󰐊"; +else s=""; +fi +artist="${6}" +album="${10}" +num="${14}." +title="${16}" +format="$s $artist - $num $title" +notify-send "🎵 Player" "$album\n$format" -t 3000 +printf "%s" "$format" >> $file -- cgit v1.2.3