You are not logged in.
I've just bought my first mechanical keyboard(and I love it), and I'm trying to configure it to my liking.
The keyboard is a CODE keyboard, standard ISO US layout, 104 key. I choose a US layout because I mostly write English, even though my mother tounge is Norwegian. As you've probably guessed I'm trying to set up switching between US and NO layouts.
The setup I am after is us layout with the altgr-intl variation as the primary layout, and then standard no layout as the secondary. I want to switch with caps-lock or scroll-lock, and I'd like the LEDs to mark if I am in the alternative layout(no). I've been looking around in confing files, and reading on the Arch Wiki, but I'm having some problems. This is my current status:
* GDM starts with US(normal variation) as default, and can switch to NO layout with caps-lock. The LED for caps works as expected
* Gnome starts with NO as default, and can switch to US(normal variation) layout with caps-lock. The LED for caps works as expected
* In other X screens(What you get to with Ctrl+Alt+F2, for example) only the US(normal variation) is available. Caps-lock works as normal
* Switching from a console screen to Gnome resets the layout to NO
As you can see, neither of the states(GDM, Gnome or console) works as they should. The most important thing for me is that each state should work as I described, it is not that important that the layout carry over, it would just be a bonus.
Here is how I currently have it configured, the configurations that have created the problems above.
* I've configured X.org with "localectl set-x11-keymap us,no pc104 altgr-intl, grp:caps_toggle,grp_led:caps,terminate:ctrl_alt_bksp"
* I've moved 00-keyboard.conf in xorg.conf.d to 11-keyboard.conf, to see if it somehow was overrided by evdev
* I've configured GNOME dconf-editor by sources and xkb-options in org.gnome.desktop.input-sources to "[('xkb', 'us+altgr_intl'), ('xkb', 'no')]" and "['grp:caps_toggle', 'terminate:ctrl_alt_bksp', 'grp_led:caps']"
* I've used used GNOME tweak tool to make sure the layout switching key is caps-lock, and that the led for caps-lock shows what layout is selected
I hope someone may help me to get this sorted out. I don't mind some scripts to do some of the controlling, as long as they are reliable. Please tell me if I forgot any info.
Offline