Open .pde files with Arduino IDE in Linux
After I installed the Arduino IDE I found out that I could not run "arduino test.pde" to open an existing sketch. The previous command would just open a blank sketch.
To fix this problem you have to edit the Arduino startup script, which in my case is located at "/usr/share/arduino/arduino". The last line of this file looks like this:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base
and it needs to be changed to this:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$*"
Finally I had to change my "/usr/bin/arduino" from:
/usr/share/arduino/arduino
to
/usr/share/arduino/arduino "$*"
Now you should be able to associate .pde files with the Arduino IDE and have them automatically open.
Mouse Jail for Twinview
This program will trap the mouse within certain screen coordinates. It can keep your mouse in 1 screen when trying to play games so it doesn't mess up side scrolling and eliminates the possibility of clicking on other windows which makes the game lose focus. The original version of MouseJail was designed to work with xinerama, but I modified it so that it works with nVidia's twinview. I personally use Openbox and it works great.
To use, just compile it and then run it like this (use appropriate coordinates):
./Jail 0 0 1920 1080
Note that the mouse might jump outside those boundaries for quick moments so use:
./Jail 0 0 1917 1080



