You are not logged in.

#1 2023-10-29 07:53:05

mhm
Member
Registered: 2023-10-29
Posts: 2

Linux Phone-type Keypad

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

#2 2023-10-29 08:02:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,030

Re: Linux Phone-type Keypad

/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

#3 2024-02-16 05:50:09

mhm
Member
Registered: 2023-10-29
Posts: 2

Re: Linux Phone-type Keypad

Thanks, Can I create a file somewhere in the home directory that overrides '/usr/share/X11/xkb/symbols/keypad'?

Offline

#4 2024-02-16 07:58:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,030

Re: Linux Phone-type Keypad

You're not looking to override anything, you're looking to use the atm keypad, w/ the "keypad:atm" XKB option.

Offline

Board footer

Powered by FluxBB