Files
neovim-config/scripts/update_music.sh
T
rootiest f625c215a7 ️ perf(music-stats): use script to cache music stats
Refactor music-stats lualine component to use an external script to cache the metadata
2024-08-03 22:45:30 -04:00

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