From 18ab65591ce3085ba7dea7e9cc03eb23a5299865 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 23 Jan 2024 23:48:08 +0200 Subject: Clean up config, multi-monitor friendly and now has 5 bars on top --- .config/polybar/config.ini | 229 +++++++++++++-------------------------------- 1 file changed, 64 insertions(+), 165 deletions(-) (limited to '.config/polybar') diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 7726dac..52720b1 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -15,22 +15,29 @@ ; The README contains a lot of information ; ;========================================================== + +[settings] +screenchange-reload = true +pseudo-transparency = true +#throttle-output = 5 +#throttle-output-for = 10 +#compositing-background = source +#compositing-foreground = over +#compositing-overline = over +#compositing-underline = over +#compositing-border = over + [colors] -foreground = #fafafa -foreground-alt = #aaCECCC9 -background = #aa000000 -;background = #aa101212 -;background = #00000000 -background-alt = #aaCECCC9 +foreground = #fafafa +foreground-alt = #aaCECCC9 +background = #aa000000 +background-alt = #aaCECCC9 disabled = #707880 -altblend = #282e49 -;primary = #aaCECCC9 -;secondary = #aaCECCC9 -;non = #aaCECCC9 +alert = #ff8989 blue = #61afef dark_blue = #42A5F5 -nord = #81a1c1 light_blue = #ADD8E6 +nord = #81a1c1 purple = #c882e7 orange = #E57C46 gray = #676E95 @@ -41,38 +48,23 @@ amber = #FBC02D indigo = #6C77BB green = #61C766 lime = #B9C244 -cyber = #53E2AE -alert = #ff8989 - [fonts] font0 = "SF Pro Mono:style=Display Bold:size=10;2" -; Font for crypto, dunst font1 = "Material Design Icons:style=Bold:size=11.5;2" -; Font for menu font2 = "Material Design Icons:style=Bold:size=13.5;2" -; Font for controlCenter font3 = "SF Pro:style=Medium:size=10.5;2" -; Font for search font4 = "SF Pro:style=Regular:size=13;2" -; Font for bspwm/workspaces font5 = "UbuntuMono Nerd font:size=11;2" -font6="Feather:style=Regular:size=15;4" -font7="Font Awesome 6 Pro Solid:style=Solid:size=14;4" -font8 ="JetBrainsMono Nerd Font:size=9;2" +font6 = "Feather:style=Regular:size=15;4" +font7 = "Font Awesome 6 Pro Solid:style=Solid:size=14;4" +font8 = "JetBrainsMono Nerd Font:size=9;2" -[bar/top-left] -#monitor = ${env:MONITOR1} -monitor = ${env:MONITOR:} -#monitor = ${env:MONITOR:HDMI-1} -width = 260px -offset-x = 1% -offset-y = 1% -height = 22pt -radius = 10.0 -fixed-center = true -background = ${colors.background} -foreground = ${colors.foreground} +[common] +line-size = 1pt +enable-ipc = true +wm-restack = bspwm +;dpi = 96 font-0 = ${fonts.font0} font-1 = ${fonts.font1} font-2 = ${fonts.font2} @@ -82,148 +74,73 @@ font-5 = ${fonts.font5} font-6 = ${fonts.font6} font-7 = ${fonts.font7} font-8 = ${fonts.font8} -line-size = 1pt -enable-ipc = true -wm-restack = generic +background = ${colors.background} +foreground = ${colors.foreground} + + +[bar/top-left] +monitor = ${env:MONITOR:} +width = 260px +offset-x = 0%:+10px +offset-y = 1% +height = 22pt +radius = 10.0 +fixed-center = true +inherit = common modules-left = space space menu space bspwm space space [bar/top-middle-left] -#monitor = ${env:MONITOR1} monitor = ${env:MONITOR:} -#monitor = ${env:MONITOR:HDMI-1} -width = 220px -offset-x = 25% +width = 230px +offset-x = 33.3333%:-130px offset-y = 1% height = 22pt radius = 10.0 fixed-center = true -background = ${colors.background} -foreground = ${colors.foreground} -font-0 = ${fonts.font0} -font-1 = ${fonts.font1} -font-2 = ${fonts.font2} -font-3 = ${fonts.font3} -font-4 = ${fonts.font4} -font-5 = ${fonts.font5} -font-6 = ${fonts.font6} -font-7 = ${fonts.font7} -font-8 = ${fonts.font8} -line-size = 1pt -enable-ipc = true -wm-restack = generic +inherit = common modules-center = space space cpu space sep space memory space sep space temperature space space [bar/top-middle] -#monitor = ${env:MONITOR1} monitor = ${env:MONITOR:} -#monitor = ${env:MONITOR:HDMI-1} width = 220px -offset-x = 42% +offset-x = 50%:-110px offset-y = 1% height = 22pt radius = 10.0 fixed-center = true -background = ${colors.background} -foreground = ${colors.foreground} -line-size = 1pt +inherit = common font-0 = "RobotoMono Nerd Font:weight=bold:size=9;2" font-1 = "RobotoMono Nerd Font:size=10;3" font-2 = "RobotoMono Nerd Font:size=11;3" -enable-ipc = true -wm-restack = generic modules-center = space space day space sep space date space sep space time space space [bar/top-middle-right] -#monitor = ${env:MONITOR1} monitor = ${env:MONITOR:} -# Tray -#tray-position = ${env:TRAY_POSITION:right} -#monitor = ${env:MONITOR:HDMI-1} -width = 220px -offset-x = 59% +width = 230px +offset-x = 66.6667%:-100px offset-y = 1% height = 22pt radius = 10.0 fixed-center = true -background = ${colors.background} -foreground = ${colors.foreground} -font-0 = ${fonts.font0} -font-1 = ${fonts.font1} -font-2 = ${fonts.font2} -font-3 = ${fonts.font3} -font-4 = ${fonts.font4} -font-5 = ${fonts.font5} -font-6 = ${fonts.font6} -font-7 = ${fonts.font7} -font-8 = ${fonts.font8} -line-size = 1pt -enable-ipc = true -wm-restack = generic +padding-right = 4 +inherit = common modules-center = space space wireless-network netspeed space space [bar/top-right] -#monitor = ${env:MONITOR1} monitor = ${env:MONITOR:} -#monitor = ${env:MONITOR:HDMI-1} width = 260px -offset-x = 80% +offset-x = 100%:-270px offset-y = 1% height = 22pt radius = 10.0 fixed-center = true -background = ${colors.background} -foreground = ${colors.foreground} -font-0 = ${fonts.font0} -font-1 = ${fonts.font1} -font-2 = ${fonts.font2} -font-3 = ${fonts.font3} -font-4 = ${fonts.font4} -font-5 = ${fonts.font5} -font-6 = ${fonts.font6} -font-7 = ${fonts.font7} -font-8 = ${fonts.font8} -line-size = 1pt padding-left = 2 ;padding-right = 2 -enable-ipc = true -wm-restack = generic +inherit = common modules-right = space space mic space sep space volume space sep space backlight space sep space inbox space space systray space space control space space -;[bar/top-left2] -;;monitor = ${env:MONITOR2} -;monitor = ${env:MONITOR:} -;;monitor = ${env:MONITOR:HDMI-1} -;width = 15% -;offset-x = 1% -;offset-y = 1% -;height = 22pt -;radius = 10.0 -;fixed-center = true -;background = ${colors.background} -;foreground = ${colors.foreground} -;font-0 = ${fonts.font0} -;font-1 = ${fonts.font1} -;font-2 = ${fonts.font2} -;font-3 = ${fonts.font3} -;font-4 = ${fonts.font4} -;font-5 = ${fonts.font5} -;font-6 = ${fonts.font6} -;font-7 = ${fonts.font7} -;font-8 = ${fonts.font8} -;line-size = 1pt -;enable-ipc = true -;wm-restack = generic -;modules-center = space space menu space bspwm space space - -[module/xworkspaces] -type = internal/xworkspaces -label-active =  -label-active-padding = 1 -label-occupied =  -label-occupied-padding = 1 -label-empty =  -label-empty-foreground = ${colors.disabled} -label-empty-padding = 1 + +;; Modules [module/bspwm] type = internal/bspwm @@ -233,13 +150,11 @@ format-foreground = ${colors.foreground} index-sort = true enable-click = true reverse-scroll = false - label-focused = ● label-focused-padding = 1 - label-occupied = "%name%" +label-occupied-foreground = ${colors.foreground} label-occupied-padding = 1 - ;label-empty = ○ label-empty="%name%" label-empty-foreground = ${colors.disabled} @@ -249,31 +164,19 @@ format-font = 5 [module/xwindow] type = internal/xwindow format =