You are not logged in.
I want Xmodmap to make change to keyboard layout (swap caps and ctrl) at startup. So I've made ~/.Xmodmap file with corresponding instructions. In my ~/.xinitrc there is code:
usermodmap=$HOME/.Xmodmap
...
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fiBut it seems that nothing from ~/.xinitrc is used by xinit which is supposed to call it. I think so because the file hadn't been containing even exec startlxde line for a long time while DE was loading correctly.
However, when I call startx from real console, it loads ~/.xinitrc for sure because the keyboard layout is changed in proper way.
As you could note, i use LXDE. DM is LXDM.
What may be wrong?
Sorry if my English bad.
Last edited by TryAgain (2013-03-02 13:03:09)
Offline
You say it works when you call startx from a "real console", but it doesn't work when you run xinit from somewhere else. Where else do you call xinit from?
Please post your full ~/.xinitrc, and ~/.xsession files.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
LXDM does not load ~/.xinitrc. Someone correct me if I'm wrong.
Offline
LXDM does not load ~/.xinitrc. Someone correct me if I'm wrong.
i agree to that
Offline
Use slim.
rm -rf /
Offline
Just use the xkb option instead of xmodmap. And no, no reason to change the DM. lxdm reads ~/.xsession, but I bet lxde have some fancy dialog to set the layout and options.
Last edited by Mr.Elendig (2013-03-03 14:48:04)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
You can symlink ~/.xinitrc to ~/.xsession. I remember doing that with lxdm a long time back.
Offline
You say it works when you call startx from a "real console", but it doesn't work when you run xinit from somewhere else. Where else do you call xinit from?
Please post your full ~/.xinitrc, and ~/.xsession files.
I thought that xinit is used while LXDE starts. I don't run it manually.
I didn't make my own ~/.xinitrc, I just used the one from /etc/xinit/ and removed lines at the end, containing twm, xterm, xclock etc. And added "exec startlxde".
Just use the xkb option instead of xmodmap. And no, no reason to change the DM. lxdm reads ~/.xsession, but I bet lxde have some fancy dialog to set the layout and options.
I know about that option, just wonder why one of the solutions from wiki doesn't work.
You can symlink ~/.xinitrc to ~/.xsession. I remember doing that with lxdm a long time back.
I've made a symlink to ~/.xinitrc named ~/.xsession, but it didn't help. I'll try something in the evening.
Offline
I thought that xinit is used while LXDE starts. I don't run it manually.
So is the problem solved then? Forget about xinitrc, just put the commands you want to run in one of the startup files that you actually use.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm currently running:
@xmodmap ~/.Xmodmaprcin my ~/.config/lxsession/LXDE/autostart and it works fine there.
Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.
Offline
LXDE most likely loads a keymap in its startup, overriding anything you do in .xprofile etc.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I've been looking for the reason that LXDE doesn't autostart all the applications listed in ~/.xinitrc or ~/.config/openbox/autostart or even ~/.config/autostart, all of which are places I've tried. Thanks for the tip-off!
Offline