From e9537349dea1a36ed0a2633ca5cf71a8cc8999b6 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 6 Dec 2022 23:50:19 +0200 Subject: Add spotify/media to show/control what's currently playing --- .config/polybar/config | 66 +++++++++++++++++++++----------------------------- 1 file changed, 28 insertions(+), 38 deletions(-) (limited to '.config/polybar') diff --git a/.config/polybar/config b/.config/polybar/config index 1b6697b..fd08d4a 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -107,7 +107,7 @@ font-5 = "UbuntuMono Nerd font:size=11;2" modules-left = sep menu sep close sep minimize sep maximize sep xwindow sep modules-center = bspwm -modules-right = dunst search control date sep +modules-right = spotify spotify-prev spotify-play-pause spotify-next long-sep dunst search control date sep ;modules-left = sep menu ;modules-center = date @@ -401,6 +401,10 @@ click-right = "kill -USR1 $(pgrep --oldest --parent %pid%)" type = custom/text content = " " +[module/long-sep] +type = custom/text +content = " " + [module/space] type = custom/text content = " " @@ -449,47 +453,33 @@ label-active-foreground = ${colors.acolor} label-urgent-foreground = ${colors.curgent} label-occupied-foreground = ${colors.foreground} +[module/spotify] +type = custom/script +tail = true +interval = 1 +; prefix symbol is shown before the text +format-prefix = "" +format =