diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-09-19 02:27:51 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-09-19 02:27:51 +0200 |
commit | dc5e3a92d28ad680be2d140acd842d9dcda1361f (patch) | |
tree | 053acb3d9ba665e24f573ed9892ae5878fafa23b /config/chroot_local-hooks/01-macbook | |
parent | a76ebbc599e4efbbe2b7b458135509607889c9a1 (diff) | |
download | kanotix-dc5e3a92d28ad680be2d140acd842d9dcda1361f.zip kanotix-dc5e3a92d28ad680be2d140acd842d9dcda1361f.tar.gz |
macbook touchpad configuration
Diffstat (limited to 'config/chroot_local-hooks/01-macbook')
-rwxr-xr-x | config/chroot_local-hooks/01-macbook | 9 |
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 |