diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2019-01-06 16:24:46 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2019-01-06 16:24:46 +0000 |
commit | 5831b06f533090a4cd6b5918d667c1fbfbe8d07b (patch) | |
tree | 8d9d536e99b8635e1c41c555e1f5b99ced253aff /polybar | |
parent | 3a6bb942c4daafa9465dbb53b8920ddfc9ede277 (diff) | |
download | dotfiles-5831b06f533090a4cd6b5918d667c1fbfbe8d07b.tar.gz dotfiles-5831b06f533090a4cd6b5918d667c1fbfbe8d07b.zip |
Update polybar for bspwm
Diffstat (limited to 'polybar')
-rw-r--r-- | polybar/config | 40 |
1 files changed, 37 insertions, 3 deletions
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 = <label-state> <label-mode> +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 = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> |