From 7c44905a47523b47f478ef10594f365a43ac9c50 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Tue, 7 Jan 2025 18:13:39 -0300 Subject: [PATCH] Improved Polybar --- .config/polybar/config | 119 ++++++++++++++++------------ .config/polybar/dnd_status.sh | 4 +- .config/polybar/protonvpn_status.sh | 6 +- 3 files changed, 72 insertions(+), 57 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index 3f035d54..4aed50d2 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -5,27 +5,34 @@ ; |___/ [colors] -accent = #fba922 +accent = #75d85a +background = #AA000000 +foreground = #ffffff +urgent = #990000 +urgent-underline = #990000 +dimmed = #888888 +highlight = #e5c07b +success = #55ffffff +muted = #666666 [bar/top] monitor = ${env:MONITOR:} enable-ipc = true width = 100% -height = 17 +height = 26 ; Increased for better font visibility -;background = #222 -background = #33000000 -foreground = #fff +background = ${colors.background} +foreground = ${colors.foreground} -overline-size = 1 -overline-color = ${self.background} -underline-size = 1 -underline-color = ${self.background} +overline-size = 2 +overline-color = ${colors.accent} +underline-size = 2 +underline-color = ${colors.accent} -padding-left = 1 -padding-right = 1 -module-margin-left = 1 -module-margin-right = 1 +padding-left = 2 +padding-right = 2 +module-margin-left = 2 +module-margin-right = 2 font-0 = NotoSans-Regular:size=10;0 font-1 = MaterialIcons:size=10;2 @@ -33,86 +40,95 @@ font-2 = Termsynu:size=10;0 font-3 = Siji:pixelsize=10;1 font-4 = FontAwesome:size=10;0 font-5 = Noto Color Emoji:scale=12;0 + modules-left = i3 music modules-center = xwindow modules-right = pulseaudio xkeyboard cpu memory wireless-network protonvpn-status dnd battery clock - [module/i3] type = internal/i3 format = pin-workspaces = true -label-dimmed-underline = ${root.background} +label-dimmed-underline = ${colors.background} -label-focused = %name% -label-focused-foreground = #f3f3f3 -label-focused-background = ${root.background} -label-focused-underline = #75d85a -label-focused-font = 4 -label-focused-padding = 3 +label-focused = ο„‘ %name% +label-focused-foreground = ${colors.accent} +label-focused-underline = ${colors.accent} +label-focused-font = 1 +label-focused-padding = 4 -label-unfocused = %name% -label-unfocused-font = 4 +label-unfocused = ο„Œ %name% +label-unfocused-font = 0 label-unfocused-padding = 3 -label-urgent = %name% -label-urgent-foreground = #000000 -label-urgent-background = #bd2c40 -label-urgent-underline = #9b0a20 -label-urgent-font = 4 -label-urgent-padding = 4 +label-urgent =  %name% +label-urgent-foreground = ${colors.foreground} +label-urgent-background = ${colors.urgent} +label-urgent-underline = ${colors.urgent-underline} +label-urgent-font = 1 +label-urgent-padding = 3 -label-visible = %name% -label-visible-foreground = #55ffffff -label-visible-font = 4 +label-visible = ο†’ %name% +label-visible-foreground = ${colors.success} +label-visible-font = 0 label-visible-padding = 4 [module/cpu] type = internal/cpu -interval = 2 +interval = 0.5 +warn-percentage = 95 format-prefix = "πŸŽ› " -format-underline = #f90000 +format-underline = ${colors.highlight} label = %percentage:2%% [module/memory] type = internal/memory -interval = 2 +interval = 3 +warn-percentage = 90 format-prefix = " πŸ“Š " -format-underline = #4bffdc +format-underline = ${colors.accent} label = %percentage_used%% [module/wireless-network] type = internal/network interface = wlp0s20f3 interval = 2.0 -ping-interval = 10 -label-connected = πŸ“Ά %essid% +format-connected = πŸ“Ά +format-disconnected = +format-packetloss = +label-connected = %essid% %netspeed:9% +label-connected-foreground = #eefafa label-disconnected = 🚫 not connected -label-disconnected-foreground = #66 +label-disconnected-foreground = ${colors.dimmed} +animation-packetloss-0 = ⚠ +animation-packetloss-0-foreground = #ffa64c +animation-packetloss-1 = πŸ“Ά +animation-packetloss-1-foreground = #000000 +animation-packetloss-framerate = 500 [module/clock] type = internal/date interval = 5 -format-padding = 5 date = πŸ“… %d-%m-%Y πŸ•œ %H:%M% +format =