How to assign Enter to Ctrl right key?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
enverhoxha

How to assign Enter to Ctrl right key?

Post by enverhoxha »

Hi
On my new laptop the Enter key is too small, while below it the Shift and the Ctrl keys are very large... and useless. I frequently press them by mistake instead of Enter.
Could I somehow assign the Enter action to one (or both) of these keys? In Keyboard Application Shortcuts from Settings Manager I can't, because it asks for a command to be associated with a key or key combination. How can I remap Ctrl right?
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.
kelebek333
Level 4
Level 4
Posts: 419
Joined: Sat Jun 25, 2011 11:57 am

Re: How to assign Enter to Ctrl right key?

Post by kelebek333 »

magnus7
Level 4
Level 4
Posts: 359
Joined: Sat Jan 30, 2016 8:46 pm

Re: How to assign Enter to Ctrl right key?

Post by magnus7 »

Remapping Right Shift and Right Ctrl to Enter.
Run this command in terminal and restart the computer:

Code: Select all

sudo sed -i \
-e '29s|.*|key<RTSH>{[Return]};|' \
-e '30s|.*|key<RCTL>{[Return]};|' \
/usr/share/X11/xkb/symbols/pc \
&& sudo dpkg-reconfigure xkb-data
enverhoxha

Re: How to assign Enter to Ctrl right key?

Post by enverhoxha »

thanks
Locked

Return to “Beginner Questions”