From 333679134590662347c4f5dd5ba6ee68472e4565 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 28 Aug 2021 15:06:00 +0200 Subject: polybar --- polybar/config | 68 ++++++++++++++++++++++++++++++++--------------- scripts/launch_polybar.sh | 14 +++++++--- 2 files changed, 57 insertions(+), 25 deletions(-) diff --git a/polybar/config b/polybar/config index a7f473c..1a2e40a 100644 --- a/polybar/config +++ b/polybar/config @@ -1,3 +1,5 @@ +; vim:ft=dosini + [colors] background = #000000 background-alt = #222222ff @@ -7,13 +9,10 @@ primary = #ffb52a secondary = #e60053 alert = #bd2c40 -[bar/jonny] +[bar/main] monitor = ${env:MONITOR:} width = 100% height = 25 -;offset-x = 1% -;offset-y = 1% -;radius = 6.0 fixed-center = true background = ${colors.background} @@ -35,8 +34,8 @@ font-0 = DejaVu Sans Mono for Powerline:pixelsize=10;3 font-1 = unifont:fontformat=truetype:size=10:antialias=false;0 font-2 = siji:pixelsize=10;1 -modules-left = xwindow i3 powermenu -modules-center = date +modules-left = xwindow date powermenu +modules-center = i3 modules-right = filesystem backlight-acpi pulseaudio memory cpu wlan eth battery temperature separator = | @@ -46,7 +45,45 @@ tray-padding = 2 wm-restack = i3 bottom = true -;override-redirect = true + +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev + +cursor-click = pointer + +[bar/secondary] +monitor = ${env:MONITOR:} +width = 100% +height = 25 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +;border-size = 4 +Iborder-color = #00000000 + +padding-left = 0 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 1 + +font-0 = DejaVu Sans Mono for Powerline:pixelsize=10;3 +font-1 = unifont:fontformat=truetype:size=10:antialias=false;0 +font-2 = siji:pixelsize=10;1 + +modules-left = xwindow +modules-center = i3 +modules-right = + +separator = | + +wm-restack = i3 +bottom = true scroll-up = i3wm-wsnext scroll-down = i3wm-wsprev @@ -238,7 +275,7 @@ interval = 3.0 ;format-connected-underline = ;format-connected-prefix = "ETH " format-connected-prefix-foreground = ${colors.foreground-alt} -label-connected = %downspeed:10% \/ %upspeed:10% /\ +label-connected = %downspeed:10%↓ %upspeed:10%↑ label-connected-font = 0 format-disconnected = @@ -310,11 +347,6 @@ format-full-prefix = "F " format-full-prefix-foreground = ${colors.foreground-alt} format-full-underline = ${self.format-charging-underline} -ramp-capacity-0 =  -ramp-capacity-1 =  -ramp-capacity-2 =  -ramp-capacity-foreground = ${colors.foreground-alt} - animation-charging-0 = -+ animation-charging-1 = +- animation-charging-foreground = ${colors.foreground-alt} @@ -330,20 +362,15 @@ type = internal/temperature thermal-zone = 0 warn-temperature = 60 -format =