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

2 Answers 2

1

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

XKBOPTIONS=""

to

XKBOPTIONS="ctrl:swapcaps"
3
  • This seems to require an x server. Is there a config that does not? Feb 16, 2017 at 5:52
  • @Mittenchops: According to man keyboard the file is "shared between X and the console". That would indicate that an X server isn't needed. Feb 16, 2017 at 10:56
  • Thanks I was looking for a simple solution like this for many ages!
    – MaikoID
    Oct 12, 2017 at 14:47
-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.

1
  • 1
    Wondering why you say "don't". How is system wide keyboard configuration in accordance with man keyboard not normal? Feb 11, 2017 at 7:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .