Added bash version with fewer lines and potentially better performance
This commit is contained in:
parent
93aa9eeb21
commit
581de8ddc9
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]
|
||||
type = custom/script
|
||||
exec = /home/ferit/scripts/nowplaying.py
|
||||
exec = /home/ferit/scripts/nowplaying.sh
|
||||
tail = true
|
||||
interval = 2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user