Add conkys and wallpapers
This commit is contained in:
22
.conky/music/fetch_meta.sh
Executable file
22
.conky/music/fetch_meta.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
old_meta=""
|
||||
while :
|
||||
do
|
||||
if [ "$(playerctl status)" = "Playing" ]
|
||||
then
|
||||
new_meta=$(playerctl metadata)
|
||||
if [ "$new_meta" != "$old_meta" ]
|
||||
then
|
||||
echo $new_meta > ~/.conky/music/meta
|
||||
old_meta=$new_meta
|
||||
fi
|
||||
else
|
||||
new_meta=''
|
||||
if [ -e ~/.conky/music/meta ]
|
||||
then
|
||||
rm ~/.conky/music/meta
|
||||
fi
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
Reference in New Issue
Block a user