sed -i 's/XKBLAYOUT="us"/XKBLAYOUT="de"/' /etc/default/keyboard setupcon --force
The first line makes the necessary changes in the file that is responsible for the global keyboard layout. The second line applies the change to the current console.
sed -i 's/XKBLAYOUT="us"/XKBLAYOUT="de"/' /etc/default/keyboard setupcon --force
The first line makes the necessary changes in the file that is responsible for the global keyboard layout. The second line applies the change to the current console.