nitrogen --restore &
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
/usr/lib/notify-osd/notify-osd &
-bluetooth-applet &
+[ -x /usr/bin/bluetooth-applet ] && bluetooth-applet &
gnome-power-manager &
xscreensaver &
volumeicon &
[ $(pgrep -c offlineimap) = 1 ] || tmux new-session -d -s offlineimap offlineimap &
-if grep -q 'SynPS/2 Synaptics TouchPad' /proc/bus/input/devices; then
+if grep -iq 'TouchPad' /proc/bus/input/devices; then
synclient VertEdgeScroll=1 &
synclient VertTwoFingerScroll=1 &
synclient TapButton1=1 &
syndaemon -i0.2 -d &
-else if grep -q 'ETPS/2 Elantech Touchpad' /proc/bus/input/devices; then
+fi
+if grep -q 'ETPS/2 Elantech Touchpad' /proc/bus/input/devices; then
synclient MinSpeed=0 &
synclient MaxSpeed=2.5 &
synclient PalmDetect=1 &
synclient AccelFactor=0.15 &
- synclient VertEdgeScroll=1 &
synclient VertScrollDelta=15 &
- synclient VertTwoFingerScroll=1 &
- synclient TapButton1=1 &
- syndaemon -i0.2 -d &
fi
# vim:ft=sh