From 5831b06f533090a4cd6b5918d667c1fbfbe8d07b Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 6 Jan 2019 16:24:46 +0000 Subject: Update polybar for bspwm --- polybar/config | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) (limited to 'polybar') diff --git a/polybar/config b/polybar/config index 4825e0d..fa3ddb6 100644 --- a/polybar/config +++ b/polybar/config @@ -46,7 +46,7 @@ font-2 = Wuncon Siji:style=Regular:pixelsize=10;1 font-3 = Font Awesome 5 Free:style=Regular:pixelsize=14 font-4 = Font Awesome 5 Brands:style=Regular:pixelsize=14 -modules-left = i3 +modules-left = bspwm modules-center = date modules-right = volume filesystem memory cpu wlan eth battery powermenu @@ -55,8 +55,8 @@ tray-padding = 2 ;tray-transparent = true ;tray-background = #0063ff -;wm-restack = bspwm -wm-restack = i3 +wm-restack = bspwm +;wm-restack = i3 ;override-redirect = true @@ -133,6 +133,40 @@ label-urgent = %index% label-urgent-background = ${colors.alert} label-urgent-padding = 1 +[module/bspwm] +type = internal/bspwm +format = +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +label-mode-padding = 1 +label-mode-foreground = #000 +label-mode-background = ${colors.primary} + +; focused = Active workspace on focused monitor +label-focused = %index% +label-focused-background = ${colors.background} +label-focused-underline = ${colors.primary} +label-focused-padding = 1 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %index% +label-unfocused-padding = 1 + +; visible = Active workspace on unfocused monitor +label-visible = %index% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %index% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + [module/mpd] type = internal/mpd format-online = -- cgit