Search This Blog

Friday, August 09, 2013

Minecraft fixed

Linux Notebook / Netbook users, I a have solution that will stop you from accidentally smashing your bed to pieces after waking up in the morning or pouring molten lava everywhere when you are interior decorating! Here is my /usr/local/games/minecraft:

#!/bin/bash

# Chris' Minecraft launcher
#
# see:
# xinput list
# xinput list-props

# Disable synaptics touchpad tap
xinput set-int-prop 12 279 8 0 0 0 0 0 0 0

# Disable synaptics touchpad scrolling
xinput set-int-prop 12 270 8 0 0 0
xinput set-int-prop 12 271 8 0 0

# Start Minecraft
java -Xmx1024M -Xms512M -jar /usr/local/games/Minecraft.jar

# Enable synaptics touchpad tap
xinput set-int-prop 12 279 8 2 3 0 0 1 3 0

# Enable synaptics touchpad scrolling
xinput set-int-prop 12 270 8 1 0 0
xinput set-int-prop 12 271 8 1 0