Re: ~/.Xmodmap and Gnome
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.
> But if I start gnome, which I prefer, I get the message
>
> you have a keyboard remapping file (.Xmodmap) in your home directory
> whose contents will now be ignored. You can use the keyboard
> preferences to restore them.
>
> But I can't find any option in keyboard preferences, where I can restore
> them. Could you please help me.
>
> Thx
> Amir
> (Debian/SID/2.6.7)
--
Joao Lourenco Tels: (+351) 212 948 536
Dep. Informatica (+351) 212 948 300
FCT / Univ. Nova de Lisboa Ext: 10740
Quinta da Torre Fax: (+351) 212 948 541
P-2829-516 CAPARICA http://www-asc.di.fct.unl.pt/~jml
Reply to: