From dc5e3a92d28ad680be2d140acd842d9dcda1361f Mon Sep 17 00:00:00 2001 From: Andreas Loibl <andreas@andreas-loibl.de> Date: Mon, 19 Sep 2011 02:27:51 +0200 Subject: macbook touchpad configuration --- config/chroot_local-hooks/01-macbook | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/chroot_local-hooks/01-macbook b/config/chroot_local-hooks/01-macbook index 3526bc6..3dd48fb 100755 --- a/config/chroot_local-hooks/01-macbook +++ b/config/chroot_local-hooks/01-macbook @@ -1,6 +1,13 @@ #!/bin/sh mkdir -p /etc/skel/.kde/Autostart cat >/etc/skel/.kde/Autostart/macbook.sh <<MAC -grep -q "Apple.*Keyboard" /proc/bus/input/devices && setxkbmap -model macbook79 +#!/bin/sh +if grep -q "Apple.*Keyboard" /proc/bus/input/devices; then + setxkbmap -model macbook79 + if [ -f ~/.kde/share/config/synaptiksrc-macbook ]; then + mv -f ~/.kde/share/config/synaptiksrc-macbook ~/.kde/share/config/synaptiksrc + qdbus org.kde.synaptiks /modules/synaptiks org.kde.Synaptiks.reparseConfiguration + fi +fi MAC chmod +x /etc/skel/.kde/Autostart/macbook.sh -- cgit v1.0