Remapping numpad keys in Mint XFCE

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
.William.

Remapping numpad keys in Mint XFCE

Post by .William. »

Hi, I would like to remap one key in the numpad on my keyboard.

Image

As you can see the two DEL keys of the keyboard and the numpad are very close to each other.
I keep confusing them, ending up not with a delete, but a dot. I would like them both to be just a delete.
By the way, I never use the numpad for anything.

So, my question is how to do this.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pjotr
Level 24
Level 24
Posts: 20129
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Remapping numpad keys in Mint XFCE

Post by Pjotr »

Maybe I'm being a bit overly simplistic here (kort door de bocht), but can't you just simply turn off NumLock?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
.William.

Re: Remapping numpad keys in Mint XFCE

Post by .William. »

You're right, but as you can see, the NumLk key is right beside the two Del keys: I keep accidentally pressing it. You may call me stupid, but I do not use this specific PC on a regular basis. I have tried getting used to it for many years, but unsuccessfully. NumLk is one other key I never have a need for.

(ik had dit béter kunnen uitleggen)
User avatar
Pjotr
Level 24
Level 24
Posts: 20129
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Remapping numpad keys in Mint XFCE

Post by Pjotr »

Disabling NumLock should be doable with xev and xmodmap (very old how-to, but probably still useful):
http://www.howdididothat.info/2012/11/2 ... on-ubuntu/

When successful, add the xmodmap command to your startup applications.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
.William.

Re: Remapping numpad keys in Mint XFCE

Post by .William. »

I tried the tutorial, but the NumLk didn't get disabled, but Return did.
How do I undo this?

[EDIT]

Logging out will undo it.
I retried the xev command, now it gave a different output. I guess I did something wrong before. I added xmodmap -e "keycode 77 = """ to my startup, so it should be right this time.

Thank you for your help.

Met vriendelijke groet.
Locked

Return to “Software & Applications”