From 1653a9f1e51a65fec3efea93a092c9150dc5b78d Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 28 Aug 2024 06:36:33 -0400 Subject: [PATCH] refactor: improve readability of ignored_sources array in update_cache.sh --- scripts/update_cache.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_cache.sh b/scripts/update_cache.sh index 94b4506..18113cc 100755 --- a/scripts/update_cache.sh +++ b/scripts/update_cache.sh @@ -10,6 +10,7 @@ ignored_players=( "kdeconnect" "haruna" "plasma-browser-integration" + "plasma-browser-integration-76042" ) # Convert array to a comma-separated string with no spaces @@ -38,7 +39,7 @@ trap cleanup EXIT # Update the music cache file every second while true; do - playerctl --ignore-player ${ignored_sources} metadata --format "{{ artist }}${separator}{{ title }}${separator}{{ album }}${separator}{{ status }}${separator}{{ volume }}${separator}{{ loop }}${separator}{{ shuffle }}" >~/.cache/music_cache.txt + playerctl --ignore-player "${ignored_sources}" metadata --format "{{ artist }}${separator}{{ title }}${separator}{{ album }}${separator}{{ status }}${separator}{{ volume }}${separator}{{ loop }}${separator}{{ shuffle }}" >~/.cache/music_cache.txt sleep 1 done & # Run this loop in the background