Files
neovim-config/scripts/update_music.sh
T
rootiest a850e33415 feat(music-stats): improve stats format and add additional metadata
Improves the shortening function. Adds loop, shuffle, and volume metadata. Uses better seperator characters to improve reliability.
2024-08-06 02:37:57 -04:00

10 lines
398 B
Bash
Executable File

#!/bin/bash
# Separator variable
separator="␟"
# Update the cache file every second
while true; do
playerctl --ignore-player firefox,kdeconnect,haruna,plasma-browser-integration metadata --format "{{ artist }}${separator}{{ title }}${separator}{{ album }}${separator}{{ status }}${separator}{{ volume }}${separator}{{ loop }}${separator}{{ shuffle }}" >~/.cache/music_cache.txt
sleep 1
done