From 71621ce51dda25456645b903184c4f97d444abcd Mon Sep 17 00:00:00 2001 From: Holger Paradies Date: Tue, 25 Jun 2013 17:58:52 +0200 Subject: lxde-keyboard-switcher --- kanotix-lxde-extra/debian/changelog | 6 ++++++ kanotix-lxde-extra/kanotix-lxde-keyboard | 17 +++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) mode change 100644 => 100755 kanotix-lxde-extra/kanotix-lxde-keyboard diff --git a/kanotix-lxde-extra/debian/changelog b/kanotix-lxde-extra/debian/changelog index a2e195f..05f3ebe 100644 --- a/kanotix-lxde-extra/debian/changelog +++ b/kanotix-lxde-extra/debian/changelog @@ -1,3 +1,9 @@ +kanotix-lxde-extra (0.2.2update1) unstable; urgency=low + + * keyboard-switcher from panel + + -- Holger Paradies Tue, 25 Jun 2013 17:57:00 +0200 + kanotix-lxde-extra (0.2.2) unstable; urgency=low * add lightdm upstart script diff --git a/kanotix-lxde-extra/kanotix-lxde-keyboard b/kanotix-lxde-extra/kanotix-lxde-keyboard old mode 100644 new mode 100755 index df30ace..8583213 --- 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 -- cgit v1.0