integrate awk to update-now-playing

This commit is contained in:
NaiJi ✨ 2024-02-12 00:24:34 +04:00
parent 160f256dad
commit ea9f914cfe
1 changed files with 1 additions and 1 deletions

View File

@ -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