From 0fafe371977fe71de9d86e72a68115393d6308fe Mon Sep 17 00:00:00 2001 From: pspiagicw Date: Thu, 19 Oct 2023 16:09:27 +0530 Subject: [PATCH] feat: Added tmux.conf customizations --- scripts/dracula.sh | 2 +- scripts/mpc.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 6ba6f0c..9d78096 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -214,7 +214,7 @@ main() script="#($current_dir/attached_clients.sh)" elif [ $plugin = "mpc" ]; then - IFS=' ' read -r -a colors <<<$(get_tmux_option "@dracula-spotify-tui-colors" "green dark_gray") + IFS=' ' read -r -a colors <<<$(get_tmux_option "@dracula-mpc-colors" "green dark_gray") script="#($current_dir/mpc.sh)" elif [ $plugin = "spotify-tui" ]; then diff --git a/scripts/mpc.sh b/scripts/mpc.sh index f75c261..6ee83ce 100755 --- a/scripts/mpc.sh +++ b/scripts/mpc.sh @@ -15,8 +15,8 @@ main() exit 1 fi - # FORMAT=$(get_tmux_option "@dracula-spotify-tui-format" "%f %s %t - %a") - mpc_playback=$(mpc current) + FORMAT=$(get_tmux_option "@dracula-mpc-format" "%title% - %artist%") + mpc_playback=$(mpc current -f "${FORMAT}") echo ${mpc_playback} }