From 1f465bf64726df9e5e7904386ce63d1a80d0b77b Mon Sep 17 00:00:00 2001 From: nocode Date: Sat, 4 Jul 2026 13:42:37 +0200 Subject: [PATCH] feat(polybar): add power module to polybar configuration Add a new power module to the polybar configuration that displays a power icon and triggers the fws-powermenu command on click. The module is styled with red foreground color and integrated into the modules-right bar. --- .../airootfs/usr/local/share/fws/polybar-config.ini | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini b/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini index 8094a4d..8babbec 100644 --- a/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini +++ b/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini @@ -37,7 +37,7 @@ font-1 = Symbols Nerd Font:size=12;3 font-2 = Noto Sans:weight=bold:size=10;2 modules-left = i3 xwindow modules-center = date -modules-right = updates keyhelp backlight pulseaudio network cpu memory tray +modules-right = updates keyhelp backlight pulseaudio network cpu memory tray power enable-ipc = true wm-restack = i3 @@ -152,6 +152,15 @@ format-background = ${colors.surface0} format-foreground = ${colors.maroon} format-padding = 2 +[module/power] +type = custom/text +content = 󰐥 +content-foreground = ${colors.red} +content-background = ${colors.surface0} +content-padding = 2 +content-font = 2 +click-left = fws-powermenu + [module/tray] type = internal/tray format =