add: i3blocks mpd playing info
This commit is contained in:
parent
61aeaff7f0
commit
634cfeb240
2 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,10 @@ separator_block_width=15
|
||||||
command=./mpc-current
|
command=./mpc-current
|
||||||
interval=persist
|
interval=persist
|
||||||
|
|
||||||
|
[mpd_playing]
|
||||||
|
command=mpc status | sed -n 2p | sed -e 's/].*(/] (/'
|
||||||
|
interval=1
|
||||||
|
|
||||||
[mpd_volume]
|
[mpd_volume]
|
||||||
command=mpc volume | cut -d ":" -f 2
|
command=mpc volume | cut -d ":" -f 2
|
||||||
interval=1
|
interval=1
|
||||||
|
|
2
bin/ext
2
bin/ext
|
@ -5,7 +5,7 @@ if [ -f $1 ] ; then
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
*.tar.gz) tar xzf $1 ;;
|
*.tar.gz) tar xzf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar x $1 ;;
|
*.rar) unrar x $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip $1 ;;
|
||||||
*.tar) tar xf $1 ;;
|
*.tar) tar xf $1 ;;
|
||||||
*.tbz2) tar xjf $1 ;;
|
*.tbz2) tar xjf $1 ;;
|
||||||
|
|
Loading…
Reference in a new issue