summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/01-macbook
blob: 3dd48fb84e0ec8a3cddfe745f14063bda1dd41e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
mkdir -p /etc/skel/.kde/Autostart
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
fi
MAC
chmod +x /etc/skel/.kde/Autostart/macbook.sh