Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

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

Open
kosa12 wants to merge 1 commit into
Axenide:mainfrom
kosa12:feature/language-switcher
Open

feat: Add language switcher functionality to the lang-label button#316
kosa12 wants to merge 1 commit into
Axenide:mainfrom
kosa12:feature/language-switcher

Conversation

@kosa12

@kosa12 kosa12 commented Dec 14, 2025

Copy link
Copy Markdown

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.

@Axenide

Axenide commented Dec 15, 2025

Copy link
Copy Markdown
Owner

Nice. Where do you set which languages are available?

@kosa12

kosa12 commented Dec 19, 2025

Copy link
Copy Markdown
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants