Set Context Menu key to function as Right Control
Solution 1
Enter System Settings
> Keyboard Layout
(in Personal
group). Open Layouts
tab (if you have multiple layouts), press Options...
button. There you can find Ctrl key position
group. Check Menu as Right Control button
, then apply new settings.
For KDE: run System Settings
, open Input devices
in Hardware
group and in Keyboard
section open Advanced
tab. There you can find the same Ctrl key position
group with Menu as Right Control button
checkbox.
Solution 2
Write to ~/.Xmodmap
:
! dell removed the right control: change context menu to right control
!keycode 135 = Menu NoSymbol Menu
remove Control = Control_R
keycode 105 = Control_R NoSymbol Control_R
keycode 135 = Control_R NoSymbol Control_R
add Control = Control_R
And to ~/.xinitrc
:
if [ -f $HOME/.Xmodmap ]; then
/usr/bin/xmodmap $HOME/.Xmodmap
fi
Based on remap right alt to behave as right ctrl and https://wiki.archlinux.org/index.php/Xmodmap.
Related videos on Youtube
brauliobo
Updated on September 18, 2022Comments
-
brauliobo over 1 year
Dell notebooks in Brazil and possibly other countries no longer ship with a right control key.
This is bad for ergonomics, so I would like to set the context menu key to function as right control.
How may this be done?
-
brauliobo almost 11 yearsnice, found that on kde too
-
whtyger almost 11 yearsWould you please describe the KDE way to make this answer complete?
-
Radost over 3 yearsNo longer works in ubuntu 20.04.1 LTS