You are not logged in.

#1 2015-01-02 11:54:29

Naps62
Member
Registered: 2012-11-18
Posts: 2

gnome overriding .xinitrc settings

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

#2 2015-01-02 12:26:06

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,558

Re: gnome overriding .xinitrc settings

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

#3 2015-01-02 12:43:27

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: gnome overriding .xinitrc settings

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2015-01-02 12:54:21

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: gnome overriding .xinitrc settings

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

Board footer

Powered by FluxBB