Skip to content

Instantly share code, notes, and snippets.

@rhiroyuki
Created April 10, 2021 00:17
Show Gist options
  • Save rhiroyuki/c6b0ff4d2d5293ef5541bea59d4748f6 to your computer and use it in GitHub Desktop.
Save rhiroyuki/c6b0ff4d2d5293ef5541bea59d4748f6 to your computer and use it in GitHub Desktop.
# keyboard layouts
# localect changes the settings that should be used in programs (including Xorg server) started after, while setxkbmap changes keyboard options for the currently running Xorg server. Also setxkbmap allows more fine-grained control, and allows switching between varios layouts during runtime. (https://superuser.com/a/1330439)
# https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration
# list current keyboard layout
setxkbmap -query
# list available models/options/variants
localectl list-x11-keymap-models
localectl list-x11-keymap-options
localectl list-x11-keymap-variants us
# setting keyboard layout
localectl set-x11-keymap us pc105 alt-intl # US layout
localctl set-x11-keymap "br" "thinkpad" "thinkpad" ""
# CEDILLA
# restart adding ENVs
sudo echo "GTK_IM_MODULE=cedilla" >> /etc/environment
sudo echo "QT_IM_MODULE=cedilla" >> /etc/environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment