summaryrefslogtreecommitdiff
path: root/kanotix-lxde-extra/kanotix-lxde-keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'kanotix-lxde-extra/kanotix-lxde-keyboard')
-rwxr-xr-x[-rw-r--r--]kanotix-lxde-extra/kanotix-lxde-keyboard17
1 files changed, 13 insertions, 4 deletions
diff --git a/kanotix-lxde-extra/kanotix-lxde-keyboard b/kanotix-lxde-extra/kanotix-lxde-keyboard
index df30ace..8583213 100644..100755
--- a/kanotix-lxde-extra/kanotix-lxde-keyboard
+++ b/kanotix-lxde-extra/kanotix-lxde-keyboard
@@ -1,8 +1,17 @@
#!/bin/sh
# set default for lxde-keyboard-switcher
-setxkbmap -layout de,us,fr -variant nodeadkeys,,
-if grep 'XKBLAYOUT="us"' /etc/default/keyboard ;then
- setxkbmap -layout us,de,fr -variant ,nodeadkeys,
-fi
+XKBMODEL="pc105"
+XKBLAYOUT="ch"
+XKBVARIANT="nodeadkeys"
+XKBOPTIONS="terminate:ctrl_alt_bksp"
+BACKSPACE="guess"
+
+[ -f /etc/default/keyboard ] && . /etc/default/keyboard
+case $XKBLAYOUT in
+ de) setxkbmap -layout de,us,fr -variant nodeadkeys,, ;;
+ us) setxkbmap -layout us,fr,de -variant ,,nodeadkeys ;;
+ fr) setxkbmap -layout fr,de,us -variant ,nodeadkeys, ;;
+ *) setxkbmap -layout $XKBLAYOUT ;;
+esac