Replies: 8 comments 8 replies
-
|
You can also switch keyboard by adding this on-click command: "hyprland/language": {
"format": "{}",
"format-en": "US",
"format-ca(fr)": "FR-CA",
+ "on-click": "hyprctl switchxkblayout your-keyboard-name-here next"
}You can find your keyboard name by running |
Beta Was this translation helpful? Give feedback.
-
|
Why is this working only when a terminal is open on the same window? it does not work if the terminal is closed however. Any solution to this? |
Beta Was this translation helpful? Give feedback.
-
|
For non-English speakers who are looking for various possible layouts and their variants
|
Beta Was this translation helpful? Give feedback.
-
|
For some reason with my UK keyboard I couldn't get waybar to dynamically update on toggling the layout. |
Beta Was this translation helpful? Give feedback.
-
|
Awesome. I wish this would be initial configuration after install omarchy |
Beta Was this translation helpful? Give feedback.
-
|
Building on top of what all of you wonderful people have already written. Here's how I added what the current language is in my waybar. When you switch the language it automatically changes in the waybar. In my Then in my Finally, here's my "get_keyboard_layout.sh" script (you need to make it as an executable using |
Beta Was this translation helpful? Give feedback.
-
|
Hey, so I included the additions - exactly as provided - to my config.jsonc and updated my style.css to reflect the aesthetics I have for my setup, but the new element doesn't seem to follow the formatting. No matter what I change my formats to, it always defaults to "English (US)" or "French (Canada)." I'd prefer for them to be shorthand, like "EN," and "FR." I removed all references to "formatting" and the Waybar element behaves the same way. I'm thinking that |
Beta Was this translation helpful? Give feedback.
-
|
i use LLM btw. Made Instant Keyboard Layout Indicator for Waybar Description: This configuration is an optimized version of the setup discussed in this thread. It ensures near-instantaneous updates of the keyboard layout indicator by utilizing signal-based triggers instead of polling. 1. Waybar ConfigurationFile:
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
2025-07-09_22-06-51.mp4
If you have not yet setup your keyboard layouts, please look at this FAQ first:
https://manuals.omamix.org/2/the-omarchy-manual/67/faq#how-do-i-switch-between-keyboard-layouts
Now edit your
~/.config/waybar/config.jsoncfile, and add the new module.Your country code and/or language format in the key name "format-{code}" must be the same as you previously set.
Now change the
~/.config/waybar/style.cssto include:Then restart waybar and here you go!
Beta Was this translation helpful? Give feedback.
All reactions