From 1970483fbd414990f8027164cdf6a7fd2e73f053 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 5 Aug 2021 19:38:01 +0200 Subject: [PATCH] Spotify support for polybar --- .config/polybar/config | 30 ++++++++++- .config/polybar/scripts/get_spotify_status.sh | 50 +++++++++++++++++++ .../polybar/scripts/scroll_spotify_status.sh | 12 +++++ 3 files changed, 90 insertions(+), 2 deletions(-) create mode 100755 .config/polybar/scripts/get_spotify_status.sh create mode 100755 .config/polybar/scripts/scroll_spotify_status.sh diff --git a/.config/polybar/config b/.config/polybar/config index e1aa74a..e1c392f 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -60,7 +60,7 @@ module-margin = 1 modules-left = dwm title modules-center = time -modules-right = cmus pulseaudio wlan battery date +modules-right = cmus spotify pulseaudio wlan battery date ################################################# # MODULES # @@ -170,6 +170,33 @@ format-underline = ${colors.line} label =  %output% label-maxlen = 80 +[module/spotify] +type = custom/script +tail = true +; prefix symbol is shown before the text +format-prefix = " " +format =