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}