summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/01-macbook
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-19 02:27:51 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-19 02:27:51 +0200
commitdc5e3a92d28ad680be2d140acd842d9dcda1361f (patch)
tree053acb3d9ba665e24f573ed9892ae5878fafa23b /config/chroot_local-hooks/01-macbook
parenta76ebbc599e4efbbe2b7b458135509607889c9a1 (diff)
downloadkanotix-dc5e3a92d28ad680be2d140acd842d9dcda1361f.zip
kanotix-dc5e3a92d28ad680be2d140acd842d9dcda1361f.tar.gz
macbook touchpad configuration
Diffstat (limited to 'config/chroot_local-hooks/01-macbook')
-rwxr-xr-xconfig/chroot_local-hooks/01-macbook9
1 files changed, 8 insertions, 1 deletions
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