Ax-Shell
Ax-Shell copied to clipboard
feat: Add language switcher functionality to the lang-label button
modules/bar.py:
- Clicking the button executes
hyprctl switchxkblayout all nextto cycle through available keyboard layouts. - The
on_language_switchmethod updates the button's label and tooltip dynamically based on Hyprland's active layout event.
Nice. Where do you set which languages are available?
in the hyprland.conf you can set the language layout like this:
input {
kb_layout = us,de,fr
kb_options = grp:win_space_toggle // or whatever
}
And i just added this to have a mouse button support too, not just a keyboard one