0

I have Ctrl and Caps Lock swapped in my main desktop environment 14.04 using GNOME Tweak Tool like here.

However, when I'm using tty1, which I do by default, my Ctrl and Caps Lock are not remapped.

How can I remap my keybindings at the machine/tty1 rather than the Gnome level?

I'm looking for a solution that does not require the x server, so xkbd options for example are not an option

Mittenchops
  • 1,620

2 Answers2

1

Open /etc/default/keyboard for editing and change the line

XKBOPTIONS=""

to

XKBOPTIONS="ctrl:swapcaps"
Gunnar Hjalmarsson
  • 33,540
  • 3
  • 64
  • 94
-1

Don't. That's not the normal way to do remaps. Remaps nowadays are normally done at the X level and result in the behavior you see, which is usually inconsequential.

Otherwise, anything that's related to X obviously won't do. Package kbd and its files in /etc/kbd/ may provide a solution.

n.caillou
  • 159