You are not logged in.
Pages: 1
I use the 'Programmer Dvorak' layout in Arch Linux. In Windows, this layout automatically changes the keypad to phone-type (789 on the lower row), and I like it. but in Linux, the keypad file is independent of the layout file. So I edited '/usr/share/X11/xkb/symbols/keypad' manually and mapped it as in phone-type. But after a system update, it automatically changed back to default. How can I change this permanently, and really isn't there any setting/package for this? Thanks!
Offline
/usr/share/X11/xkb/symbols/keypad
…
// Main numbers follows the traditions from ATMs and phones with
// numbers increasing downwards to the right. (It is easier to
// change the keyboard layout than to reprogram your local ATM;
// also cell-phones are becoming more common while calculators are
// becoming more rare).
// First level is left unspecified, so it may be combined with another
// layout, e.g. "legacy".
partial keypad_keys
xkb_symbols "atm" {
// upper row
key <KP7> { [ NoSymbol, KP_1 ] };
key <KP8> { [ NoSymbol, KP_2 ] };
key <KP9> { [ NoSymbol, KP_3 ] };
// lower row
key <KP1> { [ NoSymbol, KP_7 ] };
key <KP2> { [ NoSymbol, KP_8 ] };
key <KP3> { [ NoSymbol, KP_9 ] };
};Of course if you're diting around in /usr/share/something there's an incredible high likelihood for this to be lost w/ the next update that updated/replaces the edited file.
Offline
Thanks, Can I create a file somewhere in the home directory that overrides '/usr/share/X11/xkb/symbols/keypad'?
Offline
You're not looking to override anything, you're looking to use the atm keypad, w/ the "keypad:atm" XKB option.
Offline
Pages: 1