You are not logged in.

#1 2005-02-03 18:20:42

allanon
Member
From: Enschede, The Netherlands
Registered: 2004-02-10
Posts: 52

Dealing with xmodmap, xsession & xinitrc

I have run into this a couple of times now, and always forget what I did the last time to solve it. Searching both this forum and Google gives many wrong answers, so this is for future reference. Or for someone else with the same problem.

Problem:
KDM starts at init 5, and I need to run xmodmap when I log in to KDE to map the keys of my Logitech MX510. Neither making the file .Xmodmap with pointer = 1 2 3 6 7 4 5, nor making .xsession or .xinitrc with xmodmap -e "pointer = 1 2 3 6 7 4 5" executes xmodmap.

Solution:
The damn file is supposed to be called .xprofile these days. So there.

Offline

#2 2005-02-03 18:56:34

SG-3
Member
Registered: 2005-02-01
Posts: 28

Re: Dealing with xmodmap, xsession & xinitrc

edit desktop file ;-)

<your window manger>.desktop .... point it to a small script containing what you want

HTH

If you need an example give me a pm


"just below me"

Offline

#3 2005-02-03 19:31:59

campylobacter
Member
From: Austria
Registered: 2004-04-12
Posts: 60
Website

Re: Dealing with xmodmap, xsession & xinitrc

SG-3: please post it for all users

Offline

#4 2005-02-04 01:14:12

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Dealing with xmodmap, xsession & xinitrc

You could also try this:

echo "pointer = 1 2 3 6 7 4 5" > ~/.xmodmaprc
cd ~/Desktop/Autostart
ln -s `which xmodmap` xmodmap

Most DEs and some WMs run all programs, links and scripts during startup from ~/Desktop/Autostart.

Offline

Board footer

Powered by FluxBB