#!/bin/sh
for file in /root/config/*; do [ -r $file ] && . $file; done

if [ "$LB_DISTRIBUTION" = "stretch" ]; then

# enable tapping

mkdir -p /etc/X11/xorg.conf.d

cat <<"EOF" >/etc/X11/xorg.conf.d/40-libinput.conf
Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "on"
        #Option "DisableWhileTyping" "1"
EndSection
EOF

# set gtk2 theme
    sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0
    echo 'gtk-theme-name="Clearlooks-Phenix"' >>/etc/skel/.gtkrc-2.0
    ln -s .gtkrc-2.0 /etc/skel/.gtkrc-2.0-kde4

fi