Autoload Xmodmap upon KDM login.
I am going nuts trying to autoload my Xmodmap file upon login via KDM. I checked out the /usr/kde/<version>/share/config/kdm/Xsession file and it executes /etc/xprofile if present. I went ahead and added the line...
/usr/bin/xmodmap /etc/X11/xmodmap ...but when I restart KDM and login, the keys don't work. I run the same command from Xsession at the prompt as root and it works? KDM runs as root; I am not quite sure why it isn't executing the command successfully. Please help! I am running KDE 3.5.5 on kernel 2.6.19-gentoo-r5. |
Where is the Xmodmap you wanting to change and have load?
If using the one in /etc/X11 then you spelled it wrong based on your post. You have /etc/X11/xmodmap My system has /etc/X11/Xmodmap Now the one referring to /usr/bin/xmodmap is probably the executable file xmodmap. Brian |
I created a file in /etc/X11 called xmodmap myself. My problem was that I made it execute xmodmap in xprofile, which is instantiated before xinit starts. I went ahead and made an /etc/X11/Xmodmap file with the key information I want loaded. xinit is supposed to run this file but for some reason it still is not working. :scratch:
|
No other ideas at this time. Post the contents of the file.
Brian |
! keycode additions for the forward and backwards buttons
keycode 159 = XF86LaunchA keycode 233 = F20 keycode 234 = F19 The file works when I run xmodmap /etc/X11/Xmodmap but for some reason xinit isn't executing it even though the xinitrc scripts are setup to execute it. I am wondering if I should add some logging features to the script. |
Quote:
|
I tried that and it still isn't working. When I run startx from console instead of KDM instantiating it, the Xmodmap gets loaded.
|
Quote:
Code:
# include .Xmodmap if it exists Code:
xmodmap -e keycode 159 = XF86LaunchA |
Thanks for the suggestion; this works for now but is pretty ghetto.
|
All times are GMT -5. The time now is 08:12 PM. |