Discussion:
Keyboard re-mapping OOps sorry
Richard Kimber
2018-10-08 13:23:51 UTC
Permalink
Apologies for the aborted post:

I'm trying to remap some of the keys on my keyboard. Documemtation
seems to be somewhat sparse and/or incomplete.

I'm using suggestions on
https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-the-left-shift-and-left-control/65600#65600
which suggested that I should use xkb tools.

I've followed the suggestion given as the best answer as best I can, and
have a local file:

xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include
"pc+gb(extd)+inet(evdev)+myswap(swap_pgdn_end)" }; xkb_geometry
{ include "pc(pc104)" }; };
partial modifier_keys
xkb_symbols "swap_pgdn_end" {
replace key <PGUP> { [ END ] };
replace key <END> { [ DELE ] };
replace key <PGDN> { [ PGUP ] };
replace key <INS> { [ PGDN ] };
};

But when I try to compile it I get
syntax error: line 9 of /home/psrwebs/.xkb/keymap/mykbd
last scanned symbol is: xkb_symbols
Errors encountered in /home/psrwebs/.xkb/keymap/mykbd;
not compiled

Can anyone offer any suggestions?
Thanks.
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://li
Karl Auer
2018-10-08 14:06:06 UTC
Permalink
Post by Richard Kimber
I'm trying to remap some of the keys on my keyboard. Documemtation
seems to be somewhat sparse and/or incomplete.
I've followed the suggestion given as the best answer as best I can,
[... snipped ..]
But when I try to compile it I get 
syntax error: line 9 of /home/psrwebs/.xkb/keymap/mykbd
last scanned symbol is: xkb_symbols
Errors encountered in /home/psrwebs/.xkb/keymap/mykbd;
not compiled
Can anyone offer any suggestions?
The email system may have rearranged the config you sent. At any rate
it looks broken. Can you put the file somewhere we can look at it, like
pastebin?

Thanks, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (***@biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
Richard Kimber
2018-10-08 14:29:07 UTC
Permalink
On Tue, 09 Oct 2018 01:06:06 +1100
Post by Karl Auer
The email system may have rearranged the config you sent. At any rate
it looks broken. Can you put the file somewhere we can look at it,
like pastebin?
Thanks, K.
Here's a link:
https://www.dropbox.com/s/ub7kbfmisrcyjao/mykbd.txt?dl=0
- Richard
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https
Karl Auer
2018-10-08 14:53:19 UTC
Permalink
Post by Richard Kimber
https://www.dropbox.com/s/ub7kbfmisrcyjao/mykbd.txt?dl=0
That's much better.

I haven't used xkb, but that second part (starts "partial") looks like
it should be in a separate file.

Also, the "swap_pgdn_end" thing comes after the place where you
reference it. That might work, but I wonder.

What happens if you split that file and load it as two parts (the
second part first)?

And with that, any xkb-fu I may have had is exhausted :-)

Good luck :-)

Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (***@biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu
Richard Kimber
2018-10-08 15:24:17 UTC
Permalink
On Tue, 09 Oct 2018 01:53:19 +1100
Post by Karl Auer
Post by Richard Kimber
https://www.dropbox.com/s/ub7kbfmisrcyjao/mykbd.txt?dl=0
That's much better.
I haven't used xkb, but that second part (starts "partial") looks like
it should be in a separate file.
Also, the "swap_pgdn_end" thing comes after the place where you
reference it. That might work, but I wonder.
What happens if you split that file and load it as two parts (the
second part first)?
And with that, any xkb-fu I may have had is exhausted :-)
Good luck :-)
Thanks. None of the sites I looked at mentioned separate files but I
could try reversing the order of the statements

- Richard.
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.c
Colin Law
2018-10-08 15:30:43 UTC
Permalink
On Mon, 8 Oct 2018 at 16:26, Richard Kimber <
Post by Richard Kimber
...
Thanks. None of the sites I looked at mentioned separate files but I
could try reversing the order of the statements
The link you originally provided says to use separate files
https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-the-left-shift-and-left-control/65600#65600

Colin
Karl Auer
2018-10-08 15:37:47 UTC
Permalink
Post by Colin Law
The link you originally provided says to use separate files
https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-
the-left-shift-and-left-control/65600#65600
Wow. A hole in one?

Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (***@biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://list
Richard Kimber
2018-10-08 17:33:18 UTC
Permalink
On Tue, 09 Oct 2018 02:37:47 +1100
Post by Karl Auer
Post by Colin Law
The link you originally provided says to use separate files
https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-
the-left-shift-and-left-control/65600#65600
Wow. A hole in one?
:) Indeed. My apologies. It's been a difficult day.

- Richard
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ub
Richard Kimber
2018-10-08 16:18:48 UTC
Permalink
On Mon, 8 Oct 2018 16:30:43 +0100
Post by Colin Law
On Mon, 8 Oct 2018 at 16:26, Richard Kimber <
Post by Richard Kimber
...
Thanks. None of the sites I looked at mentioned separate files but I
could try reversing the order of the statements
The link you originally provided says to use separate files
https://unix.stackexchange.com/questions/65507/use-setxkbmap-to-swap-the-left-shift-and-left-control/65600#65600
Colin
Aaargh. Sorry. I've looked at so much in the last few hours that I got
hopelessly confused. Thanks.

However, Having got the files right, I now get an error on compilation:-

Internal error: Could not resolve keysym END
Internal error: Could not resolve keysym DELE
Internal error: Could not resolve keysym PGUP
Internal error: Could not resolve keysym PGDN

Should I be calling them something else? That's what theyre called on
the keyboard map Keyboard preferences -> Layouts -> show

- Richard
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.u
Karl Auer
2018-10-08 17:04:59 UTC
Permalink
Post by Richard Kimber
However, Having got the files right, I now get an error on
compilation:-
Internal error:   Could not resolve keysym END
Internal error:   Could not resolve keysym DELE
Internal error:   Could not resolve keysym PGUP
Internal error:   Could not resolve keysym PGDN
They should be coming in from evdev....

Maybe you should unreverse the two files :-)

Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (***@biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A0CD 28F0 10BE FC21 C57C 67C1 19A6 83A4 9B0B 1D75
Old fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: h
Richard Kimber
2018-10-08 17:54:11 UTC
Permalink
On Tue, 09 Oct 2018 04:04:59 +1100
Post by Karl Auer
Post by Richard Kimber
However, Having got the files right, I now get an error on
compilation:-
Internal error:   Could not resolve keysym END
Internal error:   Could not resolve keysym DELE
Internal error:   Could not resolve keysym PGUP
Internal error:   Could not resolve keysym PGDN
They should be coming in from evdev....
Maybe you should unreverse the two files :-)
Regards, K.
I'm not quite sure I understand you.

Yes, they have the same names in /usr/share/X11/xkb/keycodes/evdev

Do you mean swap the
key <PGUP> { [ END ] };
for
key <END> { [ PGUP ] };
?

- Richard.
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-***@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/li
Loading...