add: i3blocks mpd playing info

This commit is contained in:
Tobias Reisinger 2020-01-25 01:02:21 +01:00
parent 61aeaff7f0
commit 634cfeb240
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,10 @@ separator_block_width=15
command=./mpc-current
interval=persist
[mpd_playing]
command=mpc status | sed -n 2p | sed -e 's/].*(/] (/'
interval=1
[mpd_volume]
command=mpc volume | cut -d ":" -f 2
interval=1

View file

@ -5,7 +5,7 @@ if [ -f $1 ] ; then
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;