smaller improvements

modified:   .config/aliasrc
	modified:   .config/dunst/dunstrc
	modified:   .config/mutt/muttrc
	modified:   .config/qutebrowser/autoconfig.yml
	modified:   .config/qutebrowser/quickmarks
	modified:   .config/ranger/rc.conf
	modified:   .local/bin/displayselect
	modified:   .local/bin/dmenumount
	modified:   .local/bin/statusbar/appointments
	modified:   .local/bin/statusbar/music
	deleted:    .local/bin/tools/timer
This commit is contained in:
2021-03-10 15:31:40 +01:00
parent 5ed3bbe122
commit 255d81f9cc
11 changed files with 41 additions and 53 deletions

View File

@ -5,6 +5,12 @@ if [ $( mpc status | grep '\[paused\]' | wc -l ) -eq 1 ]; then
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")
full_length="$(mpc status | sed "/^volume:/d" | tac | sed -e "s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/ /g")"
#remove full directory structure if no title present and too long
if [ ${#full_length} -gt 40 ]; then
echo "${full_length##*/}"
else
echo "$full_length"
fi
exit
fi