more deprecations

Signed-off-by: Ferit Yiğit BALABAN <fyb@fybx.dev>
This commit is contained in:
2024-01-15 22:47:27 +03:00
parent 146f6a32df
commit 7f4d328d77
7 changed files with 0 additions and 0 deletions

17
deprecated/nowplaying.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
stat=$( playerctl status )
msg=$( playerctl -f '{{trunc(xesam:artist, 15)}} - {{trunc(xesam:title, 30)}}' metadata )
if [ "$stat" = "Playing" ]; then
if [ "$msg" = " - " ]; then
echo "No metadata"
else
echo "$msg"
fi
else
if [ "$stat" = "Paused" ]; then
echo "Paused"
else
echo ""
fi
fi
exit 0