Add mpd to status bar
This commit is contained in:
parent
e6b3f239f8
commit
dfe7ee92e6
2
.xinitrc
2
.xinitrc
@ -10,7 +10,7 @@ xss-lock -- slock &
|
|||||||
dunst &
|
dunst &
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
xsetroot -name "$(date) $(acpi | cut -d',' -f2)"
|
xsetroot -name "$(mpc -f %title% | head -n 1) $(mpc status | awk '/^\[playing\]/ { sub(/\/.+/,"",$4); print $3 }') | $(date) $(acpi | cut -d',' -f2)"
|
||||||
sleep 2
|
sleep 2
|
||||||
done &
|
done &
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user