Skip to content

Instantly share code, notes, and snippets.

@bltavares
Created May 12, 2013 14:56
Show Gist options
  • Save bltavares/5563827 to your computer and use it in GitHub Desktop.
Save bltavares/5563827 to your computer and use it in GitHub Desktop.
Autostart VOSTRO 3500
setxkbmap -layout "comprehensive(br)"
MSKB=`xinput -list | grep Microsoft | grep keyboard | cut -f 2 | cut -c 4-`
if [[ -n "$MSKB" ]]; then
setxkbmap -device $MSKB -layout "comprehensive(us)"
fi
synclient TapButton1=1 VertEdgeScroll=1 HorizEdgeScroll=1 CircScrollTrigger=2
xmodmap -e 'pointer = 1 2 3 5 4 7 6 8 9 10 11 12'
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 32 10
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 32 8
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 8 1 1
# This will make cursor not to jump if you have two fingers on the touchpad and you list one
# (which you usually do after two-finger scrolling)
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 32 110
xinput set-int-prop 'SynPS/2 Synaptics TouchPad' "Synaptics Tap Action" 8 1 1 1 1 1 1 1
pgrep nm-applet || (nm-applet &)
pulseaudio --start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment