You are not logged in.
I've had this problem for a while now, but only on one of my 2 computers. I have "setxkbmap -layout pt" in my .xinitrc file, but that wasn't working, and I manually had to run that command everytime I booted.
Now I solved that by setting the keyboard layout in the gnome settings menu (it was previously empty)
But now I also want to map Caps Lock to escape, which works by doing "setxkbmap -option caps:escape"
Running this in the terminal works, but not via xinitrc. I guess the gnome keyboard settings are overriding this as well?
Offline
Are you starting gnome through a display manager ?
If so, it may be the display manager that ignores .xinitrc content and not gnome itsef.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
This is nothing to do with Gnome.
The .xinitrc file is only parsed when starting X using the startx command. If you use a display manager then it doesn't get used, you need to use an alternative method to run your commands.
Offline
If you're using GDM you need to put the commands in ~/.xprofile:
https://wiki.archlinux.org/index.php/Gdm
Jin, Jîyan, Azadî
Offline