-
-
Notifications
You must be signed in to change notification settings - Fork 707
Module: Language
Jean-Samuel Aubry-Guzzi edited this page Dec 6, 2022
·
6 revisions
The sway/language
module displays the current keyboard layout in Sway.
option | typeof | default | description |
---|---|---|---|
format |
string | {} |
The format, how layout should be displayed. |
on-click |
string | Command to execute when clicked on the module. | |
on-click-middle |
string | Command to execute when you middle clicked on the module using mousewheel. | |
on-click-right |
string | Command to execute when you right clicked on the module. | |
tooltip-format |
string | {} |
The format, how layout should be displayed in tooltip. |
tooltip |
bool | true |
Option to disable tooltip on hovever. |
string | replacement |
---|---|
{} |
The same as {short} . |
{short} |
Short name of layout (e.g. "us"). |
{shortDescription} |
Short description of layout (e.g. "en"). |
{long} |
Long name of layout (e.g. "English (Dvorak)"). |
{variant} |
Variant of layout (e.g. "dvorak"). |
{flag} |
Flag of the country. |
"sway/language": {
"format": "{}",
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
},
"sway/language": {
"format": "{short} {variant}",
}
#language
#language.<short>
- Home
- Installation
- Configuration
- Styling
- Examples
- FAQ
- Modules:
- Backlight/Slider
- Backlight
- Battery
- Bluetooth
- CPU
- Cava
- Clock
- Custom
- DWL
- Disk
- Gamemode
- Group
- Hyprland
- Idle Inhibitor
- Image
- JACK
- Keyboard State
- Language
- Load
- MPD
- MPRIS
- Memory
- Network
- Niri
- Power Profiles Daemon
- Privacy
- PulseAudio/Slider
- PulseAudio
- River
- Sndio
- Sway
- Systemd failed units
- Taskbar
- Temperature
- Tray
- UPower
- User
- WirePlumber
- Workspaces
- Writing Modules