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
|
font-2 = Noto Sans:weight=bold:size=10;2
|
||||||
modules-left = i3 xwindow
|
modules-left = i3 xwindow
|
||||||
modules-center = date
|
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
|
enable-ipc = true
|
||||||
wm-restack = i3
|
wm-restack = i3
|
||||||
|
|
||||||
@@ -152,6 +152,15 @@ format-background = ${colors.surface0}
|
|||||||
format-foreground = ${colors.maroon}
|
format-foreground = ${colors.maroon}
|
||||||
format-padding = 2
|
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]
|
[module/tray]
|
||||||
type = internal/tray
|
type = internal/tray
|
||||||
format = <tray>
|
format = <tray>
|
||||||
|
|||||||
Reference in New Issue
Block a user