diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2013-08-25 10:15:24 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2013-08-25 10:15:24 +0200 |
commit | 3c3b78ecde4ac463eb9d8dc35c1af2c65f3c7aab (patch) | |
tree | 64aacc3c720e23958a775c7da2ab1b4807b85605 /config/chroot_local-hooks | |
parent | e8135dde3779d85a05dbe1ca65766a01dec5e820 (diff) | |
download | kanotix-3c3b78ecde4ac463eb9d8dc35c1af2c65f3c7aab.zip kanotix-3c3b78ecde4ac463eb9d8dc35c1af2c65f3c7aab.tar.gz |
keyboard layout and MacBook trackpad fixes
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/01-macbook | 16 | ||||
-rwxr-xr-x | config/chroot_local-hooks/initramfs-usbmouse-hack | 3 |
2 files changed, 14 insertions, 5 deletions
diff --git a/config/chroot_local-hooks/01-macbook b/config/chroot_local-hooks/01-macbook index 3dd48fb..745c490 100755 --- a/config/chroot_local-hooks/01-macbook +++ b/config/chroot_local-hooks/01-macbook @@ -1,13 +1,19 @@ #!/bin/sh +exit 0 # hook disabled mkdir -p /etc/skel/.kde/Autostart -cat >/etc/skel/.kde/Autostart/macbook.sh <<MAC +cat >/etc/skel/.kde/Autostart/macbook.sh <<"MAC" #!/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 + + # reverse scroll wheel + set -- $(xmodmap -pp | tail -n+5 | awk '{print $2}') + xmodmap -e "pointer = $(echo "$1 $2 $3 5 4"; shift 5; echo "$@")" + sed -i 's/\(ReverseScrollPolarity\)=.*$/\1=true/' ~/.kde/share/config/kcminputrc + + # disable tap = click because Apple Trackpads have an own click button + sed -i 's/^\(.*"f1_tap_action":\) [01]\(.*\)$/\1 0\2/' ~/.config/synaptiks/touchpad-config.json + synaptikscfg load fi MAC chmod +x /etc/skel/.kde/Autostart/macbook.sh diff --git a/config/chroot_local-hooks/initramfs-usbmouse-hack b/config/chroot_local-hooks/initramfs-usbmouse-hack new file mode 100755 index 0000000..349d173 --- /dev/null +++ b/config/chroot_local-hooks/initramfs-usbmouse-hack @@ -0,0 +1,3 @@ +#!/bin/bash +# fixes mouse for Macbook Trackpad +sed -i "s/\(hid-zydacron.ko\)$/\1 usbmouse.ko/" /usr/share/initramfs-tools/hook-functions |