dotfiles/.local/bin/statusbar/music
Alexander Bocken b232e578b1 Various Changes
modified:   .config/lf/lfrc
	modified:   .config/mpd/playlists/lofi.m3u
	deleted:    .config/mpd/playlists/lofi2.m3u
	modified:   .config/qutebrowser/autoconfig.yml
	modified:   .config/qutebrowser/bookmarks/urls
	modified:   .config/qutebrowser/qsettings/QtProject.conf
	modified:   .config/xprofile
	deleted:    .local/bin/dropdowncalc
	modified:   .local/bin/statusbar/cpu
	modified:   .local/bin/statusbar/music
	modified:   .local/bin/tools/ripper
2020-08-29 16:54:11 +02:00

11 lines
299 B
Bash
Executable File

#!/bin/sh
if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
printf '\n'
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