mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-04 21:28:21 -05:00
12 lines
225 B
Plaintext
12 lines
225 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
song=$(mpc --format "[[%title% - ]%artist%]|[%file%]" current)
|
||
|
len=$(echo "$song" | awk '{print length}')
|
||
|
if [ "$len" -gt 40 ]
|
||
|
then
|
||
|
song=$(echo "$song" | head -c 38)
|
||
|
echo "$song.."
|
||
|
else
|
||
|
echo "$song"
|
||
|
fi
|