Hi,

For other reasons, I had to solve a similar problem...

I wrote the following script, which runs "xmodmap $HOME/.Xmodmap" if
user has such file in his home directory.

================================================================
#! /bin/bash

CMD_XMODMAP=`which xmodmap`
USER_XMODMAP=.Xmodmap

[ -n "$CMD_XMODMAP" -a -f "$HOME/$USER_XMODMAP" ] && $CMD_XMODMAP
$HOME/$USER_XMODMAP
================================================================

Then I went to Gnome menu
"Applications" -> "Desktop Preferences" -> "Advanced" ->
-> "Sessions" -> "Startuo Programs"
and added an entry pointing to the script above.

It works as a charm!  :-)

Jo�o

On Ter, 2004-07-06 at 13:21, Amir wrote:
> Hi,
> 
> I'd like to use 3 special keys for my notebook
> 
> keycode 160 = XF86AudioMute
> keycode 174 = XF86AudioLowerVolume
> keycode 176 = XF86AudioRaiseVolume
> 
> So I Put them in ~/.Xmodmap
> 
> If I select kde in gdm, everything works fine and my 3 keys are defined

Reply via email to