question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Layout module doesn't handle multiple layouts properly

See original GitHub issue

I’m currently using bumblebee with the following Xorg configuration:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,ara"
        Option "XkbVariant" ",qwerty_digits"
        Option "XkbOptions" "caps:swapescape"
EndSection

The layout module shows as follows:

Imgur

It should detect and display the active layout(s) and allow switching between them as is the case in gnome-panel, for example.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:30 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
hcplcommented, Oct 6, 2017

@mahmoudhossam @tobi-wan-kenobi xkbgroup 0.2.0 released, please check it out!

1reaction
RobinVogelcommented, Jan 30, 2019

I just spent some time playing around with this issue.

What happened in my setup is that by using this line exec --no-startup-id setxkbmap -layout "fr,us,ru" -option "grp:alt_shift_toggle" in my .config/i3/config, when I switch the layout, the keymap changes but the setxkbmap -query still gives out the layout fr,us,ru.

I solved this locally by creating a script that changes the layout (fr,us,ru then us,ru,fr, etc…) instead of using the option grp:alt_shift_toggle above. And I use:

exec --no-startup-id setxkbmap -layout "fr,us,ru"
bindsym $mod2+space exec "~/Documents/i3/change_layout.sh"

where change layout is:

#!/bin/bash
arr_layouts=$(setxkbmap -query | grep "^layout:" | sed "s/layout:\s *\([a-z,]*\)/\1/g")
IFS="," read -a arr_layouts <<< $arr_layouts
n_layouts=${#arr_layouts[@]}
new_layout=$(for ((i=1; i<=$n_layouts-1; i++)); do printf ${arr_layouts[$i]}","; done)${arr_layouts[0]}
setxkbmap $new_layout

I’m sorry I don’t have a more thorough insight on this. Is there a better solution ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 12 Multiple Layouts not working properly
I'm trying to use two layouts in the same project, the one with the route '/' goes perfect, but the '/admin' works properly...
Read more >
Working with Layout Modules in Smart Connection
This article describes how to work with Layout Modules. ... placed Layout Module. Layouts can be re-used in the same or different Brands....
Read more >
Split layouts into subfolders in Android Studio | by Tam H. Doan
Another way is to modularize your project: moving code and resources into a separate feature module. It's much cleaner and follows SRP principle....
Read more >
Relationship of grid layout to other layout methods - CSS
CSS Grid Layout has been designed to work alongside other parts of CSS, as part of a complete system for doing the layout....
Read more >
Build a Responsive UI with ConstraintLayout
ConstraintLayout allows you to create large and complex layouts with a flat view ... handle can be used for just one constraint, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found