You are not logged in.

#1 2021-10-05 09:15:40

phluxcoblt
Member
Registered: 2021-08-01
Posts: 8

correct localectl status output but keymap still not working

Hi everyone,

I've always used an alias to change the keymap which corresponded to setxkbmap -layout de,ch,us -option grp:alt_shift_toggle

This works fine but I often use several computers (I have Arch on most of my machines) at a time and typing it on all my machines everyday has become inconvenient so I want the change to be persistent.

I followed the guide on the Arch wiki using localectl.

The output of localectl status is:

localectl status
   System Locale: LANG=en_US.UTF-8
   VC Keymap: us
   X11 Layout: us,de,ch
   X11 Model: grp:alt_shift_toggle

But alt_shift still doesn't do anything (still US layout). Anyone has an idea what I'm missing here? Thanks in advance.

Last edited by phluxcoblt (2021-10-05 09:21:26)

Offline

#2 2021-10-05 13:06:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: correct localectl status output but keymap still not working

What's the output of "setxkbmap -print -query" in the session?

Offline

#3 2021-10-05 13:28:59

phluxcoblt
Member
Registered: 2021-08-01
Posts: 8

Re: correct localectl status output but keymap still not working

seth wrote:

What's the output of "setxkbmap -print -query" in the session?

Thank you for your reply. The output is in the session is:

xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+de:2+ch:3+inet(evdev)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
rules:      evdev
model:      grp:alt_shift_toggle
layout:     us,de,ch

Offline

#4 2021-10-05 13:40:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: correct localectl status output but keymap still not working

Looks fine, did you only check the qwertz/y factor y/z or eg. also ~/] for the impact on the layout?

Offline

#5 2021-10-05 13:53:25

phluxcoblt
Member
Registered: 2021-08-01
Posts: 8

Re: correct localectl status output but keymap still not working

seth wrote:

Looks fine, did you only check the qwertz/y factor y/z or eg. also ~/] for the impact on the layout?

I checked everything. The keyboards don't change at all. They're exactly the same after toggling with alt + shift.

Oddly enough, I just noticed that when my screen goes into sleep (black screen) mode and asks me for my password to unlock the screen, I can now see a language icon next to the password field on which I can click and it toggles between us, de and ch.

I just let it go back to sleep and toggled to ch from there, it works: öäöäöééàààéàéüüüü.

I should have ä ö etc. with both de and ch keyboard layouts as well as é ù with the ch layout. That's why I need them.

It seems like the issue is only with the alt+shift keyboard shortcut?

Offline

#6 2021-10-05 14:00:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: correct localectl status output but keymap still not working

Does

xdotool key ISO_Next_Group

toggle the layout? (There's also Prev, First and Last)

Offline

#7 2021-10-05 14:07:01

phluxcoblt
Member
Registered: 2021-08-01
Posts: 8

Re: correct localectl status output but keymap still not working

seth wrote:

Does

xdotool key ISO_Next_Group

toggle the layout? (There's also Prev, First and Last)

Thank you for your time and prompt replies.

The command successfully toggled back to the us keyboard layout. The same command doesn't toggle to de or ch.

I tried with prev, such as ISO_Prev_Group, first and last and those commands didn't toggle to ch or de either.

Offline

#8 2021-10-05 15:14:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: correct localectl status output but keymap still not working

Does the previously used alias still work?
Does it produce the same "setxkbmap -print -query" output? (The layout order might be relevant)
Does eg. "grp:ctrl_shift_toggle" work as toggle?

Offline

#9 2021-10-05 15:37:31

phluxcoblt
Member
Registered: 2021-08-01
Posts: 8

Re: correct localectl status output but keymap still not working

seth wrote:

Does the previously used alias still work?
Does it produce the same "setxkbmap -print -query" output? (The layout order might be relevant)
Does eg. "grp:ctrl_shift_toggle" work as toggle?

setxkbmap -print -query produces the same output.

setxkbmap -print -query
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+de:2+ch:3+inet(evdev)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
rules:      evdev
model:      grp:alt_shift_toggle
layout:     us,de,ch

setxkbmap -layout de,ch,us -option grp:alt_shift_toggle still works as expected.

Offline

#10 2021-10-05 16:24:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: correct localectl status output but keymap still not working

Hail mary pass: "setxkbmap -synch" (will liklel only impact processes started after the call)

Offline

#11 2021-10-05 16:56:53

phluxcoblt
Member
Registered: 2021-08-01
Posts: 8

Re: correct localectl status output but keymap still not working

seth wrote:

Hail mary pass: "setxkbmap -synch" (will liklel only impact processes started after the call)

Still not working. I tried with lalt lshift as well, not working either. I will try some other shortcuts tomorrow... I tried with ctrl shift, doesn't work either.

Last edited by phluxcoblt (2021-10-05 16:59:24)

Offline

Board footer

Powered by FluxBB