-
-
Notifications
You must be signed in to change notification settings - Fork 106
(Widget) Power Menu
github-actions edited this page Aug 24, 2025
·
6 revisions
Option | Type | Default | Description |
---|---|---|---|
label |
string | "power" |
The label for the power menu widget. |
uptime |
boolean | true |
Whether to display the system uptime. |
blur |
boolean | false |
Whether to blur the button background. |
blur_background |
boolean | true |
Whether to blur the overlay background. |
animation_duration |
integer | 200 |
The duration of the animation in milliseconds. Must be between 0 and 2000. |
button_row |
integer | 3 |
The number of buttons in a row. Must be between 1 and 5. |
buttons |
dict | {} |
A dictionary defining the buttons and their properties. |
container_shadow |
dict | None |
Container shadow options. |
label_shadow |
dict | None |
Label shadow options. |
power_menu:
type: "yasb.power_menu.PowerMenuWidget"
options:
label: "\uf011"
uptime: True
blur: False
blur_background: True
animation_duration: 300 # Milliseconds
button_row: 3 # Number of buttons in a row, min 1 max 5
buttons:
lock: ["\uea75", "Lock"]
sleep: ["\u23fe","Sleep"]
signout: ["\udb80\udf43", "Sign out"]
shutdown: ["\uf011", "Shut Down"]
restart: ["\uead2", "Restart"]
hibernate: ["\uf28e", "Hibernate"]
cancel: ["\udb81\udf3a", "Cancel"]
label_shadow:
enabled: true
color: "black"
radius: 3
offset: [ 1, 1 ]
- label: The label for the power menu widget.
- uptime: Whether to display the system uptime.
- blur: Whether to blur the button background.
- blur_background: Whether to blur the overlay background.
- animation_duration: The duration of the animation in milliseconds. Must be between 0 and 2000.
- button_row: The number of buttons in a row. Must be between 1 and 5.
-
buttons: A dictionary defining the buttons and their properties. Possible properties are:
lock
,signout
,sleep
,shutdown
,restart
,hibernate
,cancel
,force_shutdown
,force_restart
. - container_shadow: Container shadow options.
- label_shadow: Label shadow options.
.uptime {}
.power-menu-widget .label { /*icon on the bar*/ }
.power-menu-popup {}
.power-menu-popup .button {}
.power-menu-popup .button.hover {}
.power-menu-popup .button .label {}
.power-menu-popup .button .icon {}
/* A style for a specific button. */
.power-menu-popup .button.cancel {}
.power-menu-popup .button.shutdown {}
.power-menu-popup .button.restart {}
.power-menu-popup .button.signout {}
.power-menu-popup .button.hibernate {}
.power-menu-popup .button.sleep {}
.power-menu-popup .button.force_shutdown {}
.power-menu-popup .button.force_restart {}
Note
Power Menu widget supports toggle visibility using the toggle-widget powermenu
command in the CLI. More information about the CLI commands can be found in the CLI documentation.
- Home
- Installation
- Configuration
- Styling
- YASB CLI
- FAQ
- Contributing
- Writing Widget
- Widgets:
- Active Windows Title
- Ai Chat
- Applications
- Battery
- Bluetooth
- Brightness
- Cava
- CPU
- Clock
- Custom
- Github
- GlazeWM Binding Mode
- GlazeWM Tiling Direction
- GlazeWM Workspaces
- Grouper
- GPU
- Home
- Disk
- Language
- Launchpad
- Libre Hardware Monitor
- Media
- Memory
- Microphone
- Notifications
- Notes
- OBS
- Server Monitor
- Systray
- Todo
- Traffic
- Taskbar
- Pomodoro
- Power Menu
- Power Plan
- Recycle Bin
- Update Check
- Visual Studio Code
- Volume
- Wallpapers
- Weather
- WiFi
- WHKD
- Windows-Desktops
- Komorebi Control
- Komorebi Layout
- Komorebi Stack
- Komorebi Workspaces