Thursday, June 29, 2006

Are you sitting Comfortably?

I have been suffering from some back pain over the last year or so.
A guy who performs magic has been giving me some treatment. One suggestion he made was that I should set up a reminder on my computer to sit straight, as part of my problem is due to my posture.

This is how I did it on MacOSX.

1. Download and install, with it's growlnotify command-line tool.
2. Find a small image you'd like the reminder to show (I use the xray of Homer's brain).
3. Install the plist below in ~/Library/LaunchAgents/org.fiveone.comfortable.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Are you sitting Comfortably?</string>
<string>Comfortable Reminder</string>

Edit "~/Pictures/homersbrain.jpg" to be the path to your choice of image.
Edit "Jeremy" to your name.

Running this from the Terminal, launches the reminder immediately.

$ launchctl load ~/Library/LaunchAgents/org.fiveone.comfortable.plist

This uses MacOSX's launchd.

No comments: