Skip to content

Get German keyboard with English user interface

Sven Putze edited this page Mar 1, 2020 · 4 revisions

To get an English UI with German keyboard, I followed the Void wiki and did:

  • Become root

    sudo su -
    
  • Uncomment the wanted locales in the system

    sed -i -e 's/^#de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/g' /etc/default/libc-locales
    sed -i -e 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/default/libc-locales
    
  • Write /etc/locale.conf and set everything to German, except LANG and LC_MESSAGES

    cat << __EOF__ > /etc/locale.conf
    LANG="en_US.UTF-8"
    LC_CTYPE="de_DE.UTF-8"
    LC_NUMERIC="de_DE.UTF-8"
    LC_TIME="de_DE.UTF-8"
    LC_COLLATE=C
    LC_MONETARY="de_DE.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="de_DE.UTF-8"
    LC_NAME="de_DE.UTF-8"
    LC_ADDRESS="de_DE.UTF-8"
    LC_TELEPHONE="de_DE.UTF-8"
    LC_MEASUREMENT="de_DE.UTF-8"
    LC_IDENTIFICATION="de_DE.UTF-8"
    LC_ALL=
    __EOF__
    
  • Rebuild locales

    xbps-reconfigure -f glibc-locales
    exit
    

Now, there are the Umlauts in qterm, xterm and the "real TTY" aka ALT+F2. This should probably work with other combinations of locales, too.