Added bash version with fewer lines and potentially better performance

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

No files matched your search

Executable
+9
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
+1 -1
View File
@@ -52,7 +52,7 @@ def main():
[module/music] [module/music]
type = custom/script type = custom/script
exec = /home/ferit/scripts/nowplaying.py exec = /home/ferit/scripts/nowplaying.sh
tail = true tail = true
interval = 2 interval = 2