-
Notifications
You must be signed in to change notification settings - Fork 0
(Widget) Volume
github-actions edited this page Dec 8, 2024
·
10 revisions
| Option | Type | Default | Description |
|---|---|---|---|
label |
string | '{volume[percent]}%' |
The format string for the volume label. You can use placeholders like {volume[percent]} to dynamically insert volume information. |
label_alt |
string | '{volume[percent]}%' |
The alternative format string for the volume label. Useful for displaying additional volume details. |
tooltip |
boolean | True |
Whether to show the tooltip on hover. |
volume_icons |
list | ['\ueee8', '\uf026', '\uf027', '\uf027', '\uf028'] |
A list of icons representing different volume levels. The icons are used based on the current volume percentage. |
callbacks |
dict | {'on_middle': 'do_nothing', 'on_right': 'do_nothing'} |
Callbacks for mouse events on the volume widget. |
volume:
type: "yasb.volume.VolumeWidget"
options:
label: "<span>{icon}</span> {level}"
label_alt: "{volume}"
volume_icons:
- "\ueee8" # Icon for muted
- "\uf026" # Icon for 0-10% volume
- "\uf027" # Icon for 11-30% volume
- "\uf027" # Icon for 31-60% volume
- "\uf028" # Icon for 61-100% volume
callbacks:
on_right: "exec cmd.exe /c start ms-settings:sound"-
label: The format string for the volume label. You can use placeholders like
{volume[percent]}to dynamically insert volume information. - label_alt: The alternative format string for the volume label. Useful for displaying additional volume details.
- tooltip: Whether to show the tooltip on hover.
- volume_icons: A list of icons representing different volume levels. The icons are used based on the current volume percentage.
-
callbacks: A dictionary specifying the callbacks for mouse events. The keys are
on_middleandon_right, and the values are the names of the callback functions.
.volume-widget {}
.volume-widget .widget-container {}
.volume-widget .label {}
.volume-widget .icon {}- Home
- Installation
- Configuration
- Styling
- YASB CLI
- FAQ
- Widgets:
- Active Windows Title
- Applications
- Battery
- Bluetooth
- Brightness
- Cava
- CPU
- Clock
- Custom
- Github
- GlazeWM Binding Mode
- GlazeWM Tiling Direction
- GlazeWM Workspaces
- Home
- Disk
- Language
- Libre Hardware Monitor
- Media
- Memory
- Microphone
- Notifications
- Notes
- OBS
- Server Monitor
- Systray
- Traffic
- Taskbar
- Pomodoro
- Power Menu
- Recycle Bin
- Update Check
- Volume
- Wallpapers
- Weather
- WiFi
- WHKD
- Windows-Desktops
- Komorebi Control
- Komorebi Layout
- Komorebi Stack
- Komorebi Workspaces
- Writing Widget