You are not logged in.

#1 2024-04-10 19:15:32

calrissiano
Member
Registered: 2024-01-03
Posts: 21

[SOLVED] Make setxkbmap last

Hello

I'm using an American/US International keyboard, but sometimes I have to write German "Umlaute". For this reason, I run

setxkbmap 'de(us)'

every time I start my system (but also when I log back in after sleep etc.).

I'm trying to make this persistent, so I don't have to do it over and over again.

As per the Arch wiki, this "can be made persistent in xinitrc or xprofile." Now I tried both xinitrc and xprofile and added

setxkbmap 'de(us)'

at the respective bottom as an entry, but it doesn't persist.

Any ideas what else I could try?

Thank you.

Last edited by calrissiano (2024-04-10 21:35:07)

Offline

#2 2024-04-10 19:28:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: [SOLVED] Make setxkbmap last

Look a section lower and configure it with xorg config files: https://wiki.archlinux.org/title/Xorg/K … tion_files

Which environment are you running? Most of the DEs provide their own implementation which might override a setxkbmap

Offline

#3 2024-04-10 20:07:04

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

Re: [SOLVED] Make setxkbmap last

Tangentially related but the us/intl variant has

key <AD01> { [	   q,          Q,    adiaeresis,       Adiaeresis ] };
key <AD06> { [	   y,          Y,    udiaeresis,       Udiaeresis ] };
key <AD10> { [	   p,          P,    odiaeresis,       Odiaeresis ] };

and /usr/share/X11/locale/en_US.UTF-8/Compose allows you to enter them w/ the multikey (splendid re-purpose for caps lock) and the double quote, ie. caps,",A prints Ä

Offline

#4 2024-04-10 21:34:45

calrissiano
Member
Registered: 2024-01-03
Posts: 21

Re: [SOLVED] Make setxkbmap last

So I'm not sure what happened but it works now. It has to be one of the two things I tried, as I couldn't try @V1del's suggestion. I tried to

sudo nano

into one of the two files located at /etc/X11/xorg.conf.d/ when my password suddenly stopped working (not sure why, it was definitely correct. So I re-booted the machine and voila: all the Umlaute work. Strangely enough I did reboot after setting both xinitrc and xprofile before writing my initial post and it didn't work then.

Anyway thanks for the replies! smile (I will mark this solved)

Offline

#5 2024-04-10 21:42:37

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

Re: [SOLVED] Make setxkbmap last

nb. that setxkbmap (unlike the config files) is still transient and will eg. not survive (logical) keyboard re-attachments (eg. from usb autosuspend or udevadm trigger) which is likely why you've to "(but also when I log back in after sleep etc.)"

Offline

Board footer

Powered by FluxBB