add: mpd volume info

This commit is contained in:
Tobias Reisinger 2020-01-15 01:04:05 +01:00
commit 490c978990
2 changed files with 6 additions and 2 deletions

View file

@ -4,10 +4,14 @@ align=center
separator=false
separator_block_width=15
[status_mpd]
command=./mpc-status
[mpd_current]
command=./mpc-current
interval=persist
[mpd_volume]
command=mpc volume | cut -d ":" -f 2
interval=1
[open_ncmpcpp]
full_text=♪
command=i3-msg exec "alacritty -e ncmpcpp" > /dev/null

10
.config/i3blocks/mpc-current Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
alias mpc-current='mpc -f "%title% - %album% - %artist%" current'
mpc-current
while :
do
mpc-current --wait
done