-
-
Notifications
You must be signed in to change notification settings - Fork 115
(Widget) Power Menu
github-actions edited this page Sep 18, 2024
·
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. |
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: 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
.
- 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