/etc/skel/.xinitrc: support $XKEYMODEL
authorMichael Prokop <mika@grml.org>
Mon, 28 May 2007 11:57:02 +0000 (13:57 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 28 May 2007 11:57:02 +0000 (13:57 +0200)
debian/changelog
etc/skel/.xinitrc

index fd5051f..9c784ed 100644 (file)
@@ -1,3 +1,9 @@
+grml-etc (1.0.7) unstable; urgency=low
+
+  * /etc/skel/.xinitrc: support $XKEYMODEL
+
+ -- Michael Prokop <mika@grml.org>  Mon, 28 May 2007 13:56:38 +0200
+
 grml-etc (1.0.6) unstable; urgency=low
 
   * Add /etc/skel/.ipython/ipythonrc - configuration file
index 669521a..a0ed5fe 100755 (executable)
   if [ $XKEYBOARD == "us" ] ; then
      [ -r $HOME/.Xmodmap ] && xmodmap $HOME/.Xmodmap
   else
-     setxkbmap "$XKEYBOARD"
+     if [ -n "$XKEYMODEL" ] ; then
+        setxkbmap -model "$XKEYMODEL" -layout "$XKEYBOARD"
+     else
+        setxkbmap "$XKEYBOARD"
+     fi
   fi
 
 # mouse for lefty: