-
-
Notifications
You must be signed in to change notification settings - Fork 79
(Widget) Language
github-actions edited this page Sep 18, 2024
·
8 revisions
Option | Type | Default | Description |
---|---|---|---|
label |
string | "{lang[language_code]}-{lang[country_code]}" |
The format string for the label. |
label_alt |
string | "{lang[full_name]}" |
The alternative format string for the label. Useful for displaying the full language name. |
update_interval |
integer | 5 |
The interval in seconds to update the language information. Must be between 1 and 3600. |
callbacks |
dict | { 'on_left': 'toggle_label', 'on_middle': 'do_nothing', 'on_right': 'do_nothing' } |
The dictionary of callback functions for different mouse actions. |
language:
type: "yasb.language.LanguageWidget"
options:
label: "{lang[language_code]}-{lang[country_code]}"
label_alt: "{lang[full_name]}"
update_interval: 5
callbacks:
on_left: "toggle_label"
on_middle: "do_nothing"
on_right: "do_nothing"
-
label: The format string for the label. You can use placeholders like
{lang[language_code]}
,{lang[country_code]}
or{lang[full_name]}
- label_alt: The alternative format string for the label. Useful for displaying the full language name.
- update_interval: The interval in seconds to update the language information. Must be between 1 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.
- 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
- Visual Studio Code
- Volume
- Wallpapers
- Weather
- WiFi
- WHKD
- Windows-Desktops
- Komorebi Control
- Komorebi Layout
- Komorebi Stack
- Komorebi Workspaces
- Writing Widget