xinitrc won't execute xmodmap!
Hi!
I'm trying to make xinitrc to execute
xmodmap -e "pointer = 1 2 3 6 7 4 5"
But it just won't work. Here is my xinitrc.gnome:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=/opt/xinit/Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/opt/xinit/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
/usr/X11R6/bin/xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
/usr/X11R6/bin/xmodmap $usermodmap
fi
# This nag screen isn't going to save anybody.
export NAUTILUS_OK_TO_RUN_AS_ROOT=1
# Start the window manager:
exec gnome-session
Here is my /opt/xinit/Xmodmap:
-e "pointer = 1 2 3 6 7 4 5"
What am I doing wrong? Is there any other way to execute scripts? I know gnome does provide for this. Can't remember where is it now. Thanks in advance
|