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.
This commit is contained in:
@@ -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 = <tray>
|
||||
|
||||
Reference in New Issue
Block a user