add: mpd volume info
This commit is contained in:
parent
3e8296a126
commit
490c978990
2 changed files with 6 additions and 2 deletions
|
|
@ -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
10
.config/i3blocks/mpc-current
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
alias mpc-current='mpc -f "%title% - %album% - %artist%" current'
|
||||
|
||||
mpc-current
|
||||
|
||||
while :
|
||||
do
|
||||
mpc-current --wait
|
||||
done
|
||||
Loading…
Reference in a new issue