Merge remote-tracking branch 'origin/main' into dotman-dev
This commit is contained in:
commit
45f0fc0dd0
@ -1,9 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
status=$( playerctl status )
|
||||||
if [ $(playerctl status) = 'Playing' ]; then
|
if [ $? -eq 0 ]; then
|
||||||
a=$( playerctl metadata artist )
|
echo $( playerctl -f '{{trunc(xesam:artist, 20)}} - {{trunc(xesam:title, 30)}}' metadata )
|
||||||
t=$( playerctl metadata title )
|
else
|
||||||
echo "$a - $t"
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user