Tablet Pen
My new laptop is fully put together now that I got my pen from Toshiba. The battery is here and everything.
The laptop is a Toshiba Tecra M4, and when I push the joystick button in on the screen, it rotates upside down. Here’s the python script in case anyone wants to do something similar:
#! /usr/bin/env python
"Inverts the screen and back to normal again."
import commands
import re
current = commands.getoutput("xrandr -q").split("\n")[1]
if re.match(".* (left|inverted|right) \\(", current) is not None:
commands.getstatusoutput("xrandr -o normal")
commands.getstatusoutput("xsetwacom set cursor rotate")
else:
commands.getstatusoutput("xrandr -o inverted")
commands.getstatusoutput("xsetwacom set cursor rotate half")
The pen works well, but I’m still trying to figure out how get the gimp to use the eraser and stylus/secondary button. I wish virtual paper was completed for Tomboy as well.