xmodmap autorun

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession
Locked
mokaga
Posts: 1
Joined: Wed Sep 30, 2009 2:43 pm

xmodmap autorun

Post by mokaga »

I am using LXDE on a MacBook Pro with German keyboard, so I need to load the ~/.Xmodmap file on startup to get things like the @-key working.
If I run xmodmap manually after startup it works fine, but I am not able to manage to configure an autorun for it.
I tried putting something like "xmodmap ~/.Xmodmap" in a /etc/xdg/autorun/xmodmap.desktop file, in /usr/bin/openbox-lxde, in ~/.config/openbox/autostart.sh, in /etc/xdg/lxsession/LXDE/autostart, in ~/.xinitrc but it never worked - maybe the keyboard mapping is overridden at some point during startup... I don't know - maybe someone can help me!
Neal
Posts: 19
Joined: Wed Aug 12, 2009 9:34 am

Re: xmodmap autorun

Post by Neal »

Did you try /home/<user>/.config/Autostart?
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: xmodmap autorun

Post by Marty Jack »

You should be able to put whatever you need to run on login at the top of /etc/xdg/lxsession/LXDE/autostart. Leave out the "@" because that makes the command restart if it exits.

If you tried that and it didn't work, I am puzzled also. I have a few xset's in there and they work fine.
Locked