12 lines
279 B
Bash
Executable File
12 lines
279 B
Bash
Executable File
#!/bin/sh
|
|
|
|
while :
|
|
do
|
|
current="$(mpc current -f '%title%')"
|
|
if [ -n "$current" ]
|
|
then
|
|
echo "$(echo "$current" | awk '{ if ( length($0) > 80 ) { printf substr($0, 1, 80); print "..." } else { print $0; }}') " >/home/naiji/.local/share/i3status/now-playing
|
|
sleep 1
|
|
fi
|
|
done
|