Added bash version with fewer lines and potentially better performance

This commit is contained in:
Ferit Yiğit BALABAN 2022-04-22 01:45:22 +03:00
parent 93aa9eeb21
commit 581de8ddc9
2 changed files with 10 additions and 1 deletions

9
nowplaying.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if [ $(playerctl status) = 'Playing' ]; then
a=$( playerctl metadata artist )
t=$( playerctl metadata title )
echo "$a - $t"
fi
exit 0

View File

@ -52,7 +52,7 @@ def main():
[module/music]
type = custom/script
exec = /home/ferit/scripts/nowplaying.py
exec = /home/ferit/scripts/nowplaying.sh
tail = true
interval = 2