integrate awk to update-now-playing
This commit is contained in:
parent
160f256dad
commit
ea9f914cfe
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
echo "$(mpc | head -n 1) " >/home/naiji/.local/share/i3status/now-playing
|
echo "$(mpc current | awk '{ if ( length($0) > 80 ) { printf substr($0, 1, 80); print "..." } else { print $0; }}') " >/home/naiji/.local/share/i3status/now-playing
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue