$ xmodmap .xmodmaprc
in an xterm, certain key bindings get modified as I want them. But if
I put that command into my .xsession script, the key bindings are not
modified. Why is this? What do I need to do?
Bob T.
Are you sure your .xsession is executed? Then maybe your Desktop
Environment changes your settings afterwards (it's launched at the end of
.xsession, isn't it?). I put my xmodmap settings in .profile (for bash;
may vary for other shells).
--
LL
Everything else is.
> Then maybe your Desktop
> Environment changes your settings afterwards (it's launched at the end of
> .xsession, isn't it?).
My "Desktop Environment" is twm but I do a kdeinit to get the libraries
loaded. This might be the problem.
> I put my xmodmap settings in .profile (for bash;
> may vary for other shells).
Then they're executed for every shell (and all but the first one will
actually fail because of the changes). And they'll be executed for
shells started remotely for different keyboards. This is surely not the
right solution.
> > I put my xmodmap settings in .profile (for bash;
> > may vary for other shells).
>
> Then they're executed for every shell (and all but the first one will
> actually fail because of the changes).
It should be executed only by login shells.
> And they'll be executed for shells started remotely for different
> keyboards.
Yes. I didn't know if you used remote connections.
> This is surely not the right solution.
Depends on which keyboards you use for your remote sessions ;-)
But you can also use some conditional construct, e.g. test the value of
$DISPLAY
--
LL