New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you add keyboard layout variant? #316
Comments
Hi, Isn't it visible when using the label-layout = %name% |
Nope :( |
Mine says |
|
Ok when I run Is it easy to get only "bepo" value, but how can assign this value thanks to |
The xkb extension doesn't expose a way to specifically get the variant used from what I can see. |
One solution to this is to parse whatever is in the parentheses and set that to a |
How would you do this? I'm sorry, but I don't know much about Polybar module config. |
@acarril This was a comment about how this could be implemented. This is not a feature in polybar yet. |
Oh ok, thanks! |
* Add variant support to xkeyboard layout label Solves #316 * Run style checks, I guess? * Add comment * Return nothing if there is no variant * Update CHANGELOG
When I write in French I use Bépo layout (like dvorak for french language)
$ setxkbmap -query
rules: evdev
model: pc105
layout: fr
variant: bepo
How can I display "fr (bepo)" in my polybar?
I can see there's 3 variables in the module/xkeyboard.cpp:
%name%
%layout%
%number%
Is it possible to add the variant variable?
Regards
The text was updated successfully, but these errors were encountered: