[PLUG] ~/.Xmodmap Cannot Find Commands

Rich Shepard rshepard at appl-ecosys.com
Mon Apr 8 21:23:02 UTC 2013


On Mon, 8 Apr 2013, Rogan Creswick wrote:

> Would you mind posting / sending the whole script?

Rogan,

   Here it is:

#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

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 $usermodmap
fi

xmodpam .Xmodmap

# If the user lacks $HOME/GNUstep, install it:
if [ ! -f $HOME/GNUstep/Defaults/WindowMaker ]; then
     wmaker.inst
fi

# Test for cpp, which wmaker uses to process config files:
if [ ! -x /usr/bin/cpp ]; then
   NOCPP="--no-cpp"
fi

# Start the window manager:
exec /usr/bin/wmaker $NOCPP

   It's the same as on my server/workstation running Slackware-13.1.

> This must be either a syntax issue in the script (possibly due to a munged
> merge when the slack upgrade happened?) or an issue with the context in
> which the xmodmap line is invoked.  The specific text of the errors, and
> the specific contents of that script will help enormously to narrow that
> down.  It could be a single quote that should be a back-quote, for
> example, or a space that shouldn't exist.

   There ain't no error text. X is invoked and the xfce4-10 desktop displays.
But the cap lock and left ctrl key have not been switched.

   If I run the command in a v.t. the key functions are swapped.

> The error output should be in ${HOME}/.xsession-errors, printed to the
> console where you launch startx, or in /var/log/Xorg.<something>.log

   No .xsession-errors file. The Xorg.0.log is sent off the list (484 lines
are too much cruft for everyone else). :-)

Rich




More information about the PLUG mailing list