diff --git a/.config/polybar/config b/.config/polybar/config index 0e5e9b3..230eba8 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -1,56 +1,53 @@ -===================================================== -; -; To learn more about how to configure Polybar -; go to https://github.com/jaagr/polybar -; -; The README contains alot of information -; -;===================================================== - [colors] -;background = ${xrdb:color0:#222} background = #222 background-alt = #444 -;foreground = ${xrdb:color7:#222} foreground = #dfdfdf foreground-alt = #555 primary = #ffb52a secondary = #e60053 alert = #bd2c40 +green = #689d6a +yellow = #fabc2f +red = #cc241d -[bar/example] +[bar/base] width = 900 ;100% -height = 27 -;offset-x = 1% -;offset-y = 1% +height = 35 radius = 6.0 fixed-center = false background = ${colors.background} foreground = ${colors.foreground} - line-size = 3 line-color = #f00 - border-size = 0 border-color = #00000000 - padding-left = 0 padding-right = 2 - module-margin-left = 1 -module-margin-right = 2 +module-margin-right = 3 + +font-0 = "Noto Sans:size=14:style=Regular;1" +font-1 = unifont:fontformat=truetype:size=14:antialias=false;0 +font-2 = FontAwesome:size=14;0 -font-0 = FontAwesome:size=11;1 -font-1 = Noto Mono:fontformat=truetype:size=11:antialias=true;1 -font-2 = unifont:size=11;0 wm-restack = i3 ;override-redirect = true scroll-up = i3wm-wsnext scroll-down = i3wm-wsprev + +[bar/laptop] +monitor = ${env:MONITOR:eDP-1} +inherit = bar/base +tray-position = right +fixed-center = true +tray-padding = 2 +modules-left = i3 xwindow +modules-right = spotify volume cpu memory battery1 date + [bar/example_left] -inherit = bar/example +inherit = bar/base monitor = ${env:MONITOR:HDMI-0} modules-left = i3 modules-center = xwindow @@ -62,22 +59,14 @@ tray-padding = 2 [bar/example_right] -inherit = bar/example +inherit = bar/base monitor = ${env:MONITOR:DP-4} modules-left = i3 -[bar/example_laptop] -monitor = ${env:MONITOR:eDP-1} -inherit = bar/example -modules-left = i3 -tray-position = right -tray-padding = 2 -modules-right = spotify volume filesystemroot memory cpu battery1 battery2 date -modules-center = xwindow [module/xwindow] type = internal/xwindow -label = %title:0:30:...% +label = "> %title:0:75:...%" [module/xkeyboard] @@ -140,15 +129,16 @@ label-mode-foreground = #000 label-mode-background = ${colors.primary} label-focused = %icon% -label-focused-background = ${module/bspwm.label-focused-background} -label-focused-underline = ${module/bspwm.label-focused-underline} +label-focused-background = ${colors.green} +label-focused-underline = ${colors.green} label-focused-padding = ${module/bspwm.label-focused-padding} label-unfocused = %icon% label-unfocused-padding = ${module/bspwm.label-occupied-padding} label-urgent = %icon% -label-urgent-background = ${module/bspwm.label-urgent-background} +label-urgent-background = ${colors.red} +label-urgent-underline = ${colors.red} label-urgent-padding = ${module/bspwm.label-urgent-padding} label-visible = %icon% @@ -202,29 +192,50 @@ card = intel_backlight [module/cpu] type = internal/cpu -interval = 2 -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 -label =  %percentage%% +interval = 0.5 format =