From 81de0cc55074819902389c203647d9400fb79274 Mon Sep 17 00:00:00 2001 From: Arnold Sommerfeld Date: Thu, 11 Apr 2024 13:50:32 +0100 Subject: [polybar] Simplify visuals --- home/.config/polybar/config.ini | 154 ++++++++++++++++++++-------------------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/home/.config/polybar/config.ini b/home/.config/polybar/config.ini index bad1f09..4e18fad 100644 --- a/home/.config/polybar/config.ini +++ b/home/.config/polybar/config.ini @@ -55,8 +55,7 @@ font-2 = siji:pixelsize=10;1 font-3 = NotoMono Nerd Font Mono:size=10;2 modules-left = bspwm -modules-center = xwindow -modules-right = filesystem pulseaudio cpu memory temperature wlan battery date +modules-right = filesystem pulseaudio cpu memory temperature wlan eth battery date tray ; cursor-click = pointer ; cursor-scroll = ns-resize @@ -161,7 +160,7 @@ label-connected = %{F#F0C674}%{F-} %essid% [module/eth] inherit = network-base interface = bond0 -label-connected = %local_ip%|⬇%downspeed%|⬆%upspeed% +label-connected = ⬇%downspeed%|⬆%upspeed% [module/date] type = internal/date @@ -182,91 +181,92 @@ screenchange-reload = true [module/bspwm] type = internal/bspwm -pin-workspaces = true -format = -label-focused = %index% -label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} -label-focused-padding = 2 +; Create click handler used to focus workspace +; Default: true +enable-click = false -label-occupied = %index% -label-occupied-padding = 2 +; Create scroll handlers used to cycle workspaces +; Default: true +enable-scroll = false -label-urgent = %index%! -label-urgent-background = ${colors.alert} -label-urgent-padding = 2 - -label-empty = %index% -label-empty-foreground = ${colors.foreground-alt} -label-empty-padding = 2 - -label-monocle = monocle -label-fullscreen = fullscreen -label-floating = floating -label-pseudotiled = pseudo -label-locked = locked -label-locked-foreground = ${colors.alert} -label-sticky = sticky -label-sticky-foreground = ${colors.alert} -label-private = private -label-private-foreground =${colors.alert} -label-marked = marked +; Available tags: +; +; - gets replaced with +; - gets replaced with +; Default: +format = + +; The following labels will be used to indicate the layout/mode +; for the focused workspace. Requires +; +; Available tokens: +; None +label-monocle = MON +label-fullscreen = FULL +label-floating = FLOAT +label-pseudotiled = PSEUDO +label-locked = LOCK +label-locked-foreground = #bd2c40 +label-sticky = STI +label-sticky-foreground = #fba922 +label-private = PRI +label-private-foreground = #bd2c40 +label-marked = MAR ; Separator in between workspaces -; label-separator = | +label-separator = | +label-separator-padding = 1 +label-separator-foreground = #ffb52a [module/battery] type = internal/battery -battery = ${env:BAT:BAT0} -adapter = ${env:ADP:ADP1} -full-at = 90 - -format-charging = -format-charging-underline = ${colors.primary} -format-discharging = -format-discharging-underline = ${self.format-charging-underline} - -format-full-prefix = " " -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-2 =  -animation-charging-foreground = ${colors.foreground-alt} -animation-charging-framerate = 750 - -animation-discharging-0 =  -animation-discharging-1 =  -animation-discharging-2 =  -animation-discharging-foreground = ${colors.foreground-alt} -animation-discharging-framerate = 750 +; This is useful in case the battery never reports 100% charge +; Default: 100 +full-at = 95 + +; format-low once this charge percentage is reached +; Default: 10 +; New in version 3.6.0 +low-at = 5 + +; Use the following command to list batteries and adapters: +; $ ls -1 /sys/class/power_supply/ +battery = BAT0 +adapter = ADP1 + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +; %time% +; %consumption% (shows current charge rate in watts) +label-charging = CHA %percentage%% + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +; %time% +; %consumption% (shows current discharge rate in watts) +label-discharging = DIS %percentage%% + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +label-full = FULL + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +; %time% +; %consumption% (shows current discharge rate in watts) +; New in version 3.6.0 +label-low = LOW [module/temperature] type = internal/temperature -thermal-zone = 0 -base-temperature = 30 -warn-temperature = 80 - -format =