You are not logged in.

#1 2005-12-21 17:17:38

ben-arch
Member
Registered: 2005-12-17
Posts: 120

xmodmap - for ALL users, for ALL desktops - how ?

Well, finally I succeeded in making kde recognize all my mouse buttons (MX700) correctly.

I am running KDE3.5, starting it automatically at runlevel5  (through inittab) and using xmodmap to correct the buttons mapping.

The problem is that the only way I´ve found (and I did try a lot of solutions) to run xmodmap automaticaly was to add an executable file in ~/.kde/Autostart/

And the problems :
1.  I have to manually create the file for each new user.
2.  Where fo I put it for user root ?
3.  What happens if I want to use another DM ?

So - is there someplace I can move that executable (if you have a better idea - I game), so that I´ll have my mouse buttons for any user and for any DM - while using only ONE such file ?

Thanks
Ben

Offline

#2 2005-12-21 17:23:58

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: xmodmap - for ALL users, for ALL desktops - how ?

I *believe* that anything that is put in xmodmap can be put directly into xorg.conf, BUT the formatting will be totally different. And I may be wrong.

The root user, you can put it in the /root directory, that is their home directory.

I think there is a file that is executed whenever you log in. This depends if you are using kdm, gdm, xdm -- for example, it might be .Xsession for xdm. Or I may be wrong. I'm really working from faulty memory here. Time to run memtest.... :-D

Dusty

Offline

#3 2005-12-21 17:40:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,925
Website

Re: xmodmap - for ALL users, for ALL desktops - how ?

a small script maybe to call... or add to rc.local (never tried that!)

xmodmap ~<path to .Xmodmap>

my2c


Mr Green

Offline

#4 2005-12-21 17:42:26

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: xmodmap - for ALL users, for ALL desktops - how ?

won't work in rc.local because it needs to be run after x starts up....

Dusty

Offline

#5 2005-12-21 18:37:44

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 430

Re: xmodmap - for ALL users, for ALL desktops - how ?

i think if you put the kbmap as ".Xmodmap" in ~ of every user its the user's default... but again you have to do it for every user separately...

Offline

#6 2005-12-21 19:34:28

Egil.B
Member
From: Universitas Osloensis
Registered: 2004-02-14
Posts: 116

Re: xmodmap - for ALL users, for ALL desktops - how ?

and put it in /etc/skel for future users

Offline

#7 2005-12-22 11:08:07

postlogic
Member
Registered: 2005-02-24
Posts: 410
Website

Re: xmodmap - for ALL users, for ALL desktops - how ?

Why not just put it in /etc/xmodmap, and symlink from each user's home?

Offline

#8 2005-12-22 12:24:09

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 430

Re: xmodmap - for ALL users, for ALL desktops - how ?

if every user has to use the same kbdmap, of course smile

Offline

Board footer

Powered by FluxBB