You are not logged in.

#1 2013-03-19 20:18:12

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

[SOLVED] .xinitrc doesn't run

Hi,

I have a fresh archlinux with Gnome Shell, and there are just two things I would like to have at startup. So googling around I found this might be the propper way of doing it.

someuser@pcname ~ $ cat .xinitrc 
#!/bin/sh

if [ -f $HOME/.Xmodmap ]; then
    /usr/bin/xmodmap $HOME/.Xmodmap
fi

numlockx on

This should work, but it doesn't get on startup. So every time I start up my laptop I have to manually run:

someuser@pcname ~ $ ./.xinitrc 

Why doesn't this work? I have tried copying this into .xprofile too, and no luck there ether.

Any help would be nice. Thank you.


edit:
I added another entry into gnome-session-properties.

Thanks Inxsible, although I have no idea why gnome would be so silly.

Last edited by zidarsk8 (2013-03-19 20:47:32)

Offline

#2 2013-03-19 20:23:29

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] .xinitrc doesn't run

I believe Gnome shell doesn't source .xinitrc during startup. You might have to start up xmodmap from whatever Gnome provides for auto startup of apps


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-03-19 20:41:19

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: [SOLVED] .xinitrc doesn't run

Whoops, too fast.

Do you use GDM? If so, ~/.xprofile should work.

Last edited by Unia (2013-03-19 20:41:55)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB