Refactor music-stats lualine component to use an external script to cache the metadata
7 lines
255 B
Bash
Executable File
7 lines
255 B
Bash
Executable File
#!/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
|