Merge remote-tracking branch 'origin/main' into dotman-dev
This commit is contained in:
commit
e0bd5cfede
9
nowplaying.sh
Executable file
9
nowplaying.sh
Executable 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
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user