mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-29 02:38:37 -05:00
12 lines
225 B
Bash
Executable File
12 lines
225 B
Bash
Executable File
#!/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
|