From 68a1dd65f09f9ed1dd17b238a72e84bf5c5320c2 Mon Sep 17 00:00:00 2001 From: derped Date: Thu, 9 May 2024 12:51:34 +0200 Subject: [PATCH] Rename playerclt variables to kanagawa. --- INSTALL.md | 2 +- scripts/kanagawa.sh | 2 +- scripts/playerctl.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 5248d31..6f9d059 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -395,5 +395,5 @@ set -g @kanagawa-continuum-time-threshold 60 Set the playerctl metadata format ``` -set -g @dracula-playerctl-format "► {{ artist }} - {{ title }}" +set -g @kanagawa-playerctl-format "► {{ artist }} - {{ title }}" ``` diff --git a/scripts/kanagawa.sh b/scripts/kanagawa.sh index 4efd20b..75550c8 100755 --- a/scripts/kanagawa.sh +++ b/scripts/kanagawa.sh @@ -234,7 +234,7 @@ main() { script="#($current_dir/spotify-tui.sh)" elif [ $plugin = "playerctl" ]; then - IFS=' ' read -r -a colors <<<$(get_tmux_option "@dracula-playerctl-colors" "green dark_gray") + IFS=' ' read -r -a colors <<<$(get_tmux_option "@kanagawa-playerctl-colors" "green dark_gray") script="#($current_dir/playerctl.sh)" elif [ $plugin = "kubernetes-context" ]; then diff --git a/scripts/playerctl.sh b/scripts/playerctl.sh index a813a5e..d03120d 100755 --- a/scripts/playerctl.sh +++ b/scripts/playerctl.sh @@ -8,14 +8,14 @@ source $current_dir/utils.sh main() { # storing the refresh rate in the variable RATE, default is 5 - RATE=$(get_tmux_option "@dracula-refresh-rate" 5) + RATE=$(get_tmux_option "@kanagawa-refresh-rate" 5) if ! command -v playerctl &> /dev/null then exit 1 fi - FORMAT=$(get_tmux_option "@dracula-playerctl-format" "Now playing: {{ artist }} - {{ album }} - {{ title }}") + FORMAT=$(get_tmux_option "@kanagawa-playerctl-format" "Now playing: {{ artist }} - {{ album }} - {{ title }}") playerctl_playback=$(playerctl metadata --format "${FORMAT}") echo ${playerctl_playback}