so my idea was to configure my keyboard layout to better suit my needs.
To that end, I edited the file /usr/share/X11/xkb/symbols/us.
For the sake of example, I edit the first entry - the tilde key - from the original:
Code: Select all
key <TLDE> { [ grave, asciitilde]};
Code: Select all
key <TLDE> { [ 1, 2, 3, 4]};
With the original layout, if I press the sequence <TLDE>, <SHIFT>-<TLDE>, <ALT>-<TLDE>, <SHIFT>-<ALT>-<TLDE> I got the following output:
Code: Select all
`~àþ
Code: Select all
setxkbmap -layout us
Code: Select all
12±²
So the first two entries come out as expected from the customized layout file, while the second two have changed to something completely different.
And the same is true for any key I have tried, so it's not just the TLDE key.
(For completeness sake, I add the example of changing
Code: Select all
key <AC01> { [ a, A]};
Code: Select all
key <AC01> { [ a, A, adiaeresis, Adiaeresis]};
Code: Select all
aAáÁ
Code: Select all
$ setxkbmap -verbose 10 -layout us
Setting verbose level to 11
locale is C
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105
layout: us
options: terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us+inet(evdev)+terminate(ctrl_alt_bksp)
geometry: pc(pc105)
Code: Select all
$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS="terminate:ctrl_alt_bksp"
BACKSPACE="guess"
My guess is that it might have something to do with the "Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server"
and/or the fact that setxkbmap prints the locale as C when $LANG is en_GB.UTF-8.
Is it possible that some other application is overwriting the xkb setup?
I am running debian 10 (buster) with openbox.
Thanks already for your time in reading! Any help is appreciated!
Cheers!