6

I've got right alt remapped to ctrl (via remap right alt to behave as right ctrl), now I need my ctrl to be an alt. thanks for help with this

quixotic
  • 1,292
  • 10
  • 12

2 Answers2

4

I would add setxkbmap -option 'ctrl:rctrl_ralt' to the startup applications

  1. Open up the startup applications menu by searching startup applications in the dash.
  2. Click Add and set the command to setxkbmap -option 'ctrl:rctrl_ralt'.
  3. (optional) Set the name and/or comment.

EDIT: Thanks @quixotic for the command

3

You may achieve the result by editing the /usr/share/X11/xkb/symbols/pc file. Find the line starting with key <ALT> and replace Alt_R to Control_R. If you want to swap right control with right alt, you need also find the line starting with key <RCTL> and do analogically. Then relogin to the system. Works on Ubuntu 18.10 gnome-shell 3.30