~kiwec/dotfiles

ref: 4166b8cb154b6b61c35c7149d34634f813295b4d dotfiles/.config/i3status/cmus.sh -rwxr-xr-x 320 bytes
4166b8cb — Wolf Clement Add screenshot for 2020 desktop 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

i3status | while :
do
	read line
	artist=$(cmus-remote -Q | grep ' artist ' | cut -d ' ' -f3-)
	title=$(cmus-remote -Q | grep ' title ' | cut -d ' ' -f3-)

	if [ -n "$(cmus-remote -Q | grep "status playing")" ]; then
		echo "$artist - $title  |  $line  " || exit 1
	else
		echo "$line  " || exit 1
	fi
done