Merge remote-tracking branch 'origin/main' into dotman-dev

This commit is contained in:
Ferit Yiğit BALABAN 2022-04-22 15:11:59 +03:00
commit 45f0fc0dd0

View File

@ -1,9 +1,8 @@
#!/bin/bash
if [ $(playerctl status) = 'Playing' ]; then
a=$( playerctl metadata artist )
t=$( playerctl metadata title )
echo "$a - $t"
status=$( playerctl status )
if [ $? -eq 0 ]; then
echo $( playerctl -f '{{trunc(xesam:artist, 20)}} - {{trunc(xesam:title, 30)}}' metadata )
else
echo ""
fi
exit 0