dotfiles/.local/bin/statusbar/music
Alexander Bocken f2ee676f6f modified: .config/aliasrc
modified:   .config/qutebrowser/autoconfig.yml
	deleted:    .local/bin/ducksearch
	modified:   .local/bin/statusbar/music
2020-07-07 18:50:45 +02:00

10 lines
287 B
Bash
Executable File

#!/bin/sh
if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
exit
fi
if [ $( mpc status | grep '\[playing\]' | wc -l ) -eq 1 ]; then
#echo $(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")
exit
fi