Merge remote-tracking branch 'flapflap/de-network_configuration'
[tails-test.git] / config / chroot_local-includes / usr / local / bin / tails-configure-keyboard
blob9777217468d9fe8ba53e74f1b77d9ac15554fdd4
1 #!/bin/sh
3 set -eu
5 # Get $TAILS_XKBMODEL, $TAILS_XKBLAYOUT, $TAILS_XKBVARIANT and $TAILS_XKBOPTIONS
6 . /var/lib/tails-user-session/keyboard
8 dconf write /org/gnome/libgnomekbd/keyboard/model "'$XKBMODEL'"
9 dconf write /org/gnome/libgnomekbd/keyboard/layouts "['$XKBLAYOUT\\t$XKBVARIANT']"
10 if [ "$XKBLAYOUT" != "us" ]; then
11 # Add 'us' switch. Note that it's important that we set the layout
12 # on its own above, because otherwise the following will make 'us'
13 # the default.
14 dconf write /org/gnome/libgnomekbd/keyboard/layouts "['$XKBLAYOUT\\t$XKBVARIANT', 'us']"