This commit is contained in:
2025-10-11 19:10:48 +05:00
commit d0401c8c07
27 changed files with 1240 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
music=$(playerctl metadata --format "{{title}}" 2>/dev/null)
max_length=15
if [ -z "$music" ]; then
echo ":: No playing ::"
else
if [ ${#music} -gt $max_length ]; then
echo "${music:0:$max_length}..."
else
echo "$music"
fi
fi