️ 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:
2024-08-03 22:45:30 -04:00
parent b36d8622f7
commit f625c215a7
2 changed files with 72 additions and 95 deletions
+6
View File
@@ -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