Skip to content

Set keyboard layout #14

Open
Open
@probonopd

Description

@probonopd
user@FreeBSD$ setxkbmap -layout de -variant nodeadkeys -option ctrl:swap_lalt_lctl,caps:none 

This works for e.g., Gtk apps such as Chrome

  • German
  • Alt and Ctrl swapped
  • Caps Lock disabled

BUT:

  • Ctl-Backspace becomes Alt-Backspace
  • Ctr-C, Ctrl-D becomes Alt-C, Alt-D
  • Does it mess up GNUstep apps which already have the "correct" shortcuts?

--> Is there a way to exclude those from the ctrl:swap_lalt_lctl?

  • Shortcut labels in the menu are wrong, as they are still referring to Ctrl instead of Alt.

--> Is there a way to change those labels?


Read more at: https://www.commandlinux.com/man-page/man7/xkeyboard-config.7.html

List of all supported languages:
https://gist.github.com/jatcwang/ae3b7019f219b8cdc6798329108c9aee

Can also be seen from

/usr/local/share/X11/xkb/symbols/

Also check

ctrl:lctrl_meta	Left Ctrl as Meta
ctrl:swapcaps	Swap Ctrl and Caps Lock
ctrl:ac_ctrl	At left of 'A'
ctrl:aa_ctrl	At bottom left
ctrl:rctrl_ralt	Right Ctrl as Right Alt
ctrl:menu_rctrl	Menu as Right Ctrl
ctrl:ctrl_ralt	Right Alt as Right Ctrl
ctrl:swap_lalt_lctl	Swap Left Alt key with Left Ctrl key
ctrl:swap_lwin_lctl	Swap Left Win key with Left Ctrl key
ctrl:swap_lalt_lctl_lwin	Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt

For Gnome:

dconf write "/org/gnome/desktop/input-sources/xkb-options" "['ctrl:swap_lalt_lctl','ctrl:swap_ralt_rctl']"

More information:

https://askubuntu.com/questions/885045/how-to-swap-ctrl-and-alt-keys-in-ubuntu-16-04

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions