From c10862c66e51bf6e2480345904e79f0a80dec77a Mon Sep 17 00:00:00 2001 From: t0xa Date: Fri, 22 Aug 2025 17:04:28 +0300 Subject: [PATCH] polybar: major update with icons --- polybar/config.ini | 62 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 55 insertions(+), 7 deletions(-) diff --git a/polybar/config.ini b/polybar/config.ini index 0e07542..1a02ca3 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -67,11 +67,13 @@ module-margin = 1 separator = | separator-foreground = ${colors.disabled} -font-0 = JetBrainsMonoNL Nerd Font Mono;3 +font-0 = "Liberation Mono:size=11;3" +font-1 = "Symbols Nerd Font Mono:size=13;3" +; font-0 = "JetBrainsMonoNL Nerd Font Mono:size=11;3" ; modules-left = i3 xwindow modules-left = i3 -modules-right = filesystem_root filesystem_home pulseaudio memory cpu xkeyboard date +modules-right = wlan battery filesystem_root pulseaudio memory cpu xkeyboard date cursor-click = pointer cursor-scroll = ns-resize @@ -114,13 +116,13 @@ label-unmounted-foreground = ${colors.disabled} [module/pulseaudio] type = internal/pulseaudio -format-volume-prefix = "VOL " +format-volume-prefix = " " format-volume-prefix-foreground = ${colors.primary} format-volume = label-volume = %percentage%% -label-muted = muted +label-muted =  muted label-muted-foreground = ${colors.disabled} [module/xkeyboard] @@ -144,14 +146,19 @@ format = [module/memory] type = internal/memory interval = 2 -format-prefix = "RAM " +format-prefix = " " format-prefix-foreground = ${colors.primary} -label = %percentage_used:2%% +label = %percentage_used:2%% +; type = internal/memory +; interval = 2 +; format-prefix = " " +; format-prefix-foreground = ${colors.primary} +; label = %percentage_used:2%% [module/cpu] type = internal/cpu interval = 2 -format-prefix = "CPU " +format-prefix = " " format-prefix-foreground = ${colors.primary} label = %percentage:2%% @@ -162,6 +169,10 @@ format-connected = format-disconnected = label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected +[module/wireless-network] +type = internal/network +interface = wlan1 + [module/date] type = internal/date @@ -272,3 +283,40 @@ unknown-as-up = true ; New in version 3.6.0 speed-unit = '' +[module/battery] +type = internal/battery +; This is useful in case the battery never reports 100% charge +; Default: 100 +full-at = 99 + +; 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 + +; If an inotify event haven't been reported in this many +; seconds, manually poll for new values. +; +; Needed as a fallback for systems that don't report events +; on sysfs/procfs. +; +; Disable polling by setting the interval to 0. +; +; Default: 5 +poll-interval = 5 +label-discharging = %{F#FF8C00}󱟞%{F-} %percentage%% %time% +label-charging = %{F#09f429}󰂄%{F-} %percentage%% +label-full = %{F#1bf1fc}󱊣%{F-} %percentage%% +label-low = %{F#f20202}󱊡%{F-} BATTERY LOW %percentage%% + +[module/wlan] +type = internal/network +interface = wlp2s0 +format-connected = +label-connected = %{F#f68c23}%{F-} %{T6}%essid% %signal% +