From f13c31203257321c560f87e064268228e359186e Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 29 Jan 2024 23:56:11 +0200 Subject: Add vpn module and improve battery module --- .config/polybar/config.ini | 277 +++++++++++++++++++++++++++++---------------- 1 file changed, 182 insertions(+), 95 deletions(-) (limited to '.config') diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 52720b1..2c9149e 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -59,6 +59,7 @@ 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" +font9 = "Fira Nerd font:size=11;2" [common] line-size = 1pt @@ -74,36 +75,44 @@ font-5 = ${fonts.font5} font-6 = ${fonts.font6} font-7 = ${fonts.font7} font-8 = ${fonts.font8} +font-9 = ${fonts.font9} background = ${colors.background} foreground = ${colors.foreground} [bar/top-left] monitor = ${env:MONITOR:} -width = 260px +;width = 260px +width = 180px 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 +modules-left = space space menu space space space bspwm space space [bar/top-middle-left] monitor = ${env:MONITOR:} -width = 230px -offset-x = 33.3333%:-130px +;width = 230px +;offset-x = 33.3333%:-130px +width = 290px +offset-x = 33.3333%:-190px offset-y = 1% height = 22pt radius = 10.0 fixed-center = true inherit = common -modules-center = space space cpu space sep space memory space sep space temperature space space +modules-center = space space cpu space sep space memory space sep space temperature space sep space battery space space [bar/top-middle] monitor = ${env:MONITOR:} -width = 220px -offset-x = 50%:-110px +;width = 220px +;width = 150px +width = 170px +;offset-x = 50%:-110px +;offset-x = 50%:-110px +offset-x = 50%:-85px offset-y = 1% height = 22pt radius = 10.0 @@ -112,24 +121,30 @@ 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" -modules-center = space space day space sep space date space sep space time space space +;modules-center = space space day space sep space date space sep space time space space +modules-center = space space date space space [bar/top-middle-right] monitor = ${env:MONITOR:} -width = 230px +;width = 230px +;offset-x = 66.6667%:-100px +width = 290px offset-x = 66.6667%:-100px offset-y = 1% height = 22pt radius = 10.0 fixed-center = true -padding-right = 4 +;padding-right = 4 inherit = common -modules-center = space space wireless-network netspeed space space +;modules-center = space space space sep space vpn space space +modules-center = space space wireless-network space sep space netspeed space sep space vpn space space +;modules-center = space space wireless-network netspeed space sep space space space [bar/top-right] monitor = ${env:MONITOR:} -width = 260px -offset-x = 100%:-270px +;width = 260px +width = 180px +offset-x = 100%:-190px offset-y = 1% height = 22pt radius = 10.0 @@ -137,7 +152,7 @@ fixed-center = true padding-left = 2 ;padding-right = 2 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 +modules-right = space space mic space sep space volume space sep space backlight space sep space inbox space sep space systray space space sep control space space ;; Modules @@ -174,7 +189,30 @@ label-empty-foreground = ${colors.disabled} [module/volume] type = internal/pulseaudio -format-volume = +;format-volume = +;label-volume =  +;label-volume-foreground = ${colors.foreground} +;label-muted =  muted +;bar-volume-width = 10 +;bar-volume-foreground-0 = #55aa55 +;bar-volume-foreground-1 = #55aa55 +;bar-volume-foreground-2 = #55aa55 +;bar-volume-foreground-3 = #55aa55 +;bar-volume-foreground-4 = #55aa55 +;bar-volume-foreground-5 = #f5a70a +;bar-volume-foreground-6 = #ff5555 +;bar-volume-gradient = false +;bar-volume-indicator = │ +;bar-volume-indicator-font = 2 +;bar-volume-indicator-foreground = #ff +;bar-volume-fill = ─ +;bar-volume-fill-font = 2 +;bar-volume-empty = ─ +;bar-volume-empty-font = 2 +;bar-volume-empty-foreground = + +;format-volume = format-volume-font = 9 format-volume-padding = 0 label-volume = %percentage:2%% @@ -184,9 +222,10 @@ label-volume-padding = 1 format-muted-foreground = ${colors.red} format-muted-underline = ${colors.red} ramp-volume-foreground = ${colors.foreground} -label-muted = "muted" +;label-muted = "muted" +label-muted = " " label-muted-foreground = ${colors.disabled} -ramp-volume-0 = " " +ramp-volume-0 = " " ramp-volume-1 = " " ramp-volume-2 = " " ramp-volume-3 = " " @@ -194,31 +233,49 @@ ramp-volume-4 = " " ramp-volume-5 = " " ramp-volume-6 = " " click-right = "pavucontrol" +scroll-interval = 10 [module/inbox] type = custom/text content-foreground = ${colors.foreground} ;content-padding = 1 -content = 󰮒 -;󰧬󰮒󰻨􀍕 -;click-left = "dunstctl history-pop" -;click-left = bash $HOME/.config/eww/scripts/openNotificationCenter.sh +;content-font = 3 +content = "󰮒" +;content = " " +;󰧬󰮒󰻨 click-left = notification-center [module/day] type = internal/date interval = 1 -date = %A -label = %date:8% +date = %a +label = %date% label-foreground = ${colors.foreground} +;[module/day] +;type = internal/date +;interval = 1 +;date = %A +;label = %date:8% +;label-foreground = ${colors.foreground} +; +;[module/date] +;type = internal/date +;interval = 1 +;;date = %d-%m-%Y +;date = %d %b %Y +;label = %date% +;label-foreground = ${colors.foreground} +;format = %{A1:$HOME/.config/eww/scripts/popup calendar &:}