Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

feat: Add language switcher functionality to the lang-label button

Open kosa12 opened this issue 11 months ago • 2 comments

modules/bar.py:

  • Clicking the button executes hyprctl switchxkblayout all next to cycle through available keyboard layouts.
  • The on_language_switch method updates the button's label and tooltip dynamically based on Hyprland's active layout event.

kosa12 avatar Dec 14 '25 09:12 kosa12

Nice. Where do you set which languages are available?

Axenide avatar Dec 15 '25 19:12 Axenide

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

kosa12 avatar Dec 19 '25 19:12 kosa12