Sunday, July 13, 2008

Choosing a mouse and keyboard for my HTPC

For input devices for my HTPC, I decided to go with the Gyration Cordless Optical Air Mouse and Compact Keyboard Suite (GC1105CKM). Both the mouse and keyboard connected and worked with Ubuntu Hardy Heron right out of the box. The only thing I needed to setup was the additional mouse buttons and multimedia keyboard keys.

To utilize the extra buttons, I followed the directions here and used xbindkeys:
http://perens.com/works/software/gyration.html

1) I first created an .xbindkeysrc file in my /home directory

xbindkeys --defaults > /home/stchang/.xbindkeysrc

2) I ran xbindkeys-config and added the three additional mouse buttons using the "New" and "Get Keys" buttons in xbindkeys-config

3) For the Command box, I used xvkbd -xsendevent to execute the key sequence that I wanted. For now I have the buttons mapped to do forward/rewinding in vlc:
button3: xvkbd -xsendevent -text "\C\[Left]"
button4: xvkbd -xsendevent -text "\A\[Left]"
button5: xvkbd -xsendevent -text "\C\[Right]"

No comments: