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

This commit is contained in:
Ferit Yiğit BALABAN 2022-04-22 01:49:50 +03:00
commit e0bd5cfede
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