From 9e5b14b338fa07a0da3c8799125dc217d0c8f5e5 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 31 Aug 2020 23:39:55 +0200 Subject: switch to polybar --- polybar/config | 75 ++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 34 deletions(-) (limited to 'polybar') diff --git a/polybar/config b/polybar/config index 8d1e26b..6918754 100644 --- a/polybar/config +++ b/polybar/config @@ -1,25 +1,7 @@ -;========================================================== -; -; -; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ -; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ -; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ -; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ -; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ -; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ -; -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;========================================================== [colors] -background = #000000 -background-alt = #222222 -;foreground = ${xrdb:color7:#222} +background = #000000ff +background-alt = #222222ff foreground = #dfdfdf foreground-alt = #555 primary = #ffb52a @@ -27,9 +9,9 @@ secondary = #e60053 alert = #bd2c40 [bar/jonny] -monitor = ${env:MONITOR:DP-2} +monitor = ${env:MONITOR:} width = 100% -height = 27 +height = 25 ;offset-x = 1% ;offset-y = 1% ;radius = 6.0 @@ -137,7 +119,7 @@ index-sort = true wrapping-scroll = false ; Only show workspaces on the same output as the bar -;pin-workspaces = true +pin-workspaces = true label-mode-padding = 2 label-mode-foreground = #000 @@ -145,17 +127,19 @@ label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% -label-focused-background = ${module/bspwm.label-focused-background} -;label-focused-underline = ${module/bspwm.label-focused-underline} +;label-focused-background = ${module/bspwm.label-focused-background} +label-focused-underline = ${module/bspwm.label-focused-underline} label-focused-padding = ${module/bspwm.label-focused-padding} ; unfocused = Inactive workspace on any monitor label-unfocused = %index% +label-unfocused-foreground = ${colors.foreground-alt} label-unfocused-padding = ${module/bspwm.label-occupied-padding} ; visible = Active workspace on unfocused monitor label-visible = %index% -label-visible-background = ${self.label-focused-background} + +;label-visible-background = ${colors.background-alt} ;label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} @@ -165,7 +149,7 @@ label-urgent-background = ${module/bspwm.label-urgent-background} label-urgent-padding = ${module/bspwm.label-urgent-padding} ; Separator in between workspaces - label-separator = + label-separator = | [module/mpd] @@ -206,18 +190,40 @@ card = intel_backlight [module/cpu] type = internal/cpu interval = 2 -format-prefix = "CPU " +;format-prefix = "CPU " format-prefix-foreground = ${colors.foreground-alt} +format =