Running xmodmap in .xinitrc
Running xmodmap in .xinitrc
- Subject: Running xmodmap in .xinitrc
- From: jcbuffington <email@hidden>
- Date: Sat, 22 Feb 2003 18:54:51 -0500
When I run xmodmap from my ~/.xinitrc file, the modifications do not
take effect unless I execute 'xmodmap .Xmodmap' from the initial xterm
session. I have also tried xmodmap -e '...' lines in the .xinitrc file
and the same problem happens. Has anyone else experienced this problem?
Any work arounds?
Below are a test .xinitrc file and the relevant console output. Any
suggestions would be appreciated.
I am using Apple's X11 0.2.1 on Mac OS X 10.2.4.
Regards,
Jon
--->8 ~/.xinitrc 8<---
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap -verbose $usermodmap > /dev/console
fi
# start some nice programs
xterm -geometry 80x48+640+0 &
# start the window manager
exec quartz-wm
--->8 console output 8<---
...
! /Users/jcb/.Xmodmap:
! 3: keycode 60 = Meta_R
keycode 0x3c = Meta_R
! 4: keycode 63 = Alt_L
keycode 0x3f = Alt_L
! 5: keycode 66 = Meta_L
keycode 0x42 = Meta_L
! 9: clear Mod1
clear mod1
! 10: clear Mod2
clear mod2
! 11: clear Mod3
clear mod3
! 13: add Mod1 = Alt_L Alt_R
add mod1 = Alt_L Alt_R
! 14: add Mod2 = Meta_L Meta_R
add mod2 = Meta_L Meta_R
!
! executing work queue
!
keycode 0x3c = Meta_R
keycode 0x3f = Alt_L
keycode 0x42 = Meta_L
clear mod1
clear mod2
clear mod3
add mod1 = Alt_L Alt_R
add mod2 = Meta_L Meta_R
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.