-
Notifications
You must be signed in to change notification settings - Fork 42
(Widget) Disk
github-actions edited this page Sep 18, 2024
·
11 revisions
Option | Type | Default | Description |
---|---|---|---|
label |
string | '{volume_label} {space[used][percent]}' |
The format string for the memory widget. Displays free and total virtual memory. |
label_alt |
string | '{volume_label} {space[used][gb]} / {space[total][gb]}' |
The alternative format string for the memory widget. Displays virtual and swap memory percentages. |
volume_label |
string | 'C' |
Partition which you want to show in the bar |
update_interval |
integer | 60 |
The interval in seconds to update the disk widget. Must be between 0 and 3600. |
callbacks |
dict | {'on_left': 'do_nothing', 'on_middle': 'do_nothing', 'on_right': "exec explorer C:\\"} |
Callbacks for mouse events. |
disk:
type: "yasb.disk.DiskWidget"
options:
label: "{volume_label} {space[used][percent]}"
label_alt: "{volume_label} {space[used][gb]} / {space[total][gb]}"
volume_label: "C"
update_interval: 60
callbacks:
on_middle: "do_nothing"
on_right: "exec explorer C:\\" # Open disk C in file explorer
- label: The format string for the disk widget. Displays free space in percent.
- label_alt: The alternative format string for the disk widget.
- volume_label: Partition/volumew hich you want to show in the bar.
- update_interval: The interval in seconds to update the disk widget. Must be between 0 and 3600.
-
callbacks: A dictionary specifying the callbacks for mouse events. The keys are
on_left
,on_middle
, andon_right
, and the values are the names of the callback functions.
The label
and label_alt
options use format strings that can include placeholders for disk widget. These placeholders will be replaced with actual values when the widget is rendered. You can use {space[used][percent]}
, {space[used][mb]}
, {space[used][gb]}
, {space[free][percent]}
, {space[free][mb]}
, {space[free][gb]}
, {space[total][mb]}
, {space[total][gb]}
- Home
- Installation
- Configuration
- Styling
- YASB CLI
- FAQ
- Widgets:
- Active Windows Title
- Applications
- Battery
- Bluetooth
- Brightness
- CPU
- Clock
- Custom
- Github
- GlazeWM Workspaces
- GlazeWM Tiling Direction
- Home
- Disk
- Language
- Libre Hardware Monitor
- Media
- Memory
- Microphone
- Notifications
- OBS
- Server Monitor
- Traffic
- Taskbar
- Power Menu
- Update Check
- Volume
- Wallpapers
- Weather
- WiFi
- WHKD
- Windows-Desktops
- Komorebi Workspaces
- Komorebi Layout
- Writing Widget