From 8ee569dd6aa5db3837b3f491ea4d1cc2d7190e3d Mon Sep 17 00:00:00 2001 From: Jumscrafteur Date: Wed, 26 Apr 2023 17:08:06 +0200 Subject: [PATCH 1/2] Add dracula-spotify-tui-format --- scripts/spotify-tui.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/spotify-tui.sh b/scripts/spotify-tui.sh index dc07206..61352ef 100755 --- a/scripts/spotify-tui.sh +++ b/scripts/spotify-tui.sh @@ -15,7 +15,8 @@ main() exit 1 fi - spotify_playback=$(spt playback) + FORMAT=$(get_tmux_option "@dracula-spotify-tui-format" "%t - %a") + spotify_playback=$(spt playback -f "${FORMAT}") echo ${spotify_playback} } From 15ce3968c861ec5ce1a79d3581dd5f49eadd460b Mon Sep 17 00:00:00 2001 From: Jumscrafteur Date: Wed, 26 Apr 2023 17:21:32 +0200 Subject: [PATCH 2/2] Change default format to spt's default --- scripts/spotify-tui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/spotify-tui.sh b/scripts/spotify-tui.sh index 61352ef..33ff32f 100755 --- a/scripts/spotify-tui.sh +++ b/scripts/spotify-tui.sh @@ -15,7 +15,7 @@ main() exit 1 fi - FORMAT=$(get_tmux_option "@dracula-spotify-tui-format" "%t - %a") + FORMAT=$(get_tmux_option "@dracula-spotify-tui-format" "%f %s %t - %a") spotify_playback=$(spt playback -f "${FORMAT}") echo ${spotify_playback}