From 7b5968e3805287eab3e8e1404a5b693b5d05df3d Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 22 Aug 2017 23:17:56 -0500 Subject: [PATCH] Polybar: Layout change, prepare a little for bspwm --- .config/polybar/config | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index 86a155db..6a1cd9c5 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -72,8 +72,8 @@ tray-padding = 0 border-bottom-size = 0 border-bottom-color = ${res/colors.primary} -modules-left = wlan cpu-ramp memory-label || xwindow -modules-center = i3 +modules-left = i3 bspwm || wlan cpu-ramp memory-label +modules-center = xwindow modules-right = temperature-ramp volume-ramp battery-ramp date ; LOWER @@ -195,6 +195,32 @@ label-unfocused-padding = ${self.label-focused-padding} label-unfocused-foreground = ${res/colors.foreground} label-unfocused-background = ${res/colors.background} +; Urgent workspace +label-urgent = ${self.label-focused} +label-urgent-padding = ${self.label-focused-padding} +label-urgent-foreground = ${res/colors.background} +label-urgent-background = ${res/colors.alert} + +[module/bspwm] +type = internal/bspwm +enable-click = true +enable-scroll = true +format = +pin-workspaces = true + +ws-icon-0 = web; +ws-icon-1 = music; +ws-icon-2 = terminal; +ws-icon-default =  + +; Active workspace on focused monitor +label-focused = %icon% +label-focused-padding = 2 +label-focused-foreground = ${res/colors.background} +label-focused-background = ${res/colors.primary} + + + ; Urgent workspace label-urgent = ${self.label-focused} label-urgent-padding = ${self.label-focused-padding}