Rename playerclt variables to kanagawa.

This commit is contained in:
Kevin Baensch 2024-05-09 12:51:34 +02:00
parent 12e56d9980
commit 68a1dd65f0
Signed by: derped
GPG key ID: C0F1D326C7626543
3 changed files with 4 additions and 4 deletions

View file

@ -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 }}"
```

View file

@ -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

View file

@ -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}