⚡️ perf(music-stats): use script to cache music stats
Refactor music-stats lualine component to use an external script to cache the metadata
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Update the cache file every second
|
||||
while true; do
|
||||
playerctl --ignore-player firefox,kdeconnect,plasma-browser-integration metadata --format '{{ artist }} - {{ title }} - {{ album }} - {{ status }}' >~/.cache/music_cache.txt
|
||||
sleep 1
|
||||
done
|
||||
Reference in New Issue
Block a user