This commit is contained in:
sankalp committed 2023-04-24 15:41:27 +05:45
1 parent 0b17aa140b
commit dde4ef218a
136 files changed
+9796

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
title=$(playerctl metadata --format '{{ title }}')
count=$(echo -n "$title" | wc -c)
if [ -z "$title" ]; then
echo "Nothing Playing...";
else
if [ "$count" -le 18 ]; then
echo $title
else
echo $(playerctl metadata --format '{{ title }}' | cut -c-18)...
fi
fi