Configure the mouse to work with freevo
It is possible to map the mouse buttons with keyboard events to control freevo menu by installing the following utilities:
A possible configuration using mplayer is the mapping of the following buttons:
Mouse button |
Keybord event |
Freevo event |
Mplayer event |
Wheel Up |
up |
Up one menu item |
Back some time |
Wheel Down |
down |
Down one menu item |
Forward some time |
Right Button |
return |
Select menu item |
Exit mplayer |
Left Button |
escape |
Previous menu |
Exit mplayer |
Wheel Button |
space |
- |
Pause |
This mapping is obtained by having a file called .xbindkeysrc in user home containing this text:
"echo -e 'KeyStrPress Escape\nKeyStrRelease Escape\n' | xmacroplay :0 &" b:3 "echo -e 'KeyStrPress Up\nKeyStrRelease Up\n' | xmacroplay :0 &" b:4 "echo -e 'KeyStrPress Down\nKeyStrRelease Down\n' | xmacroplay :0 &" b:5 "echo -e 'KeyStrPress Return\nKeyStrRelease Return\n' | xmacroplay :0 &" b:1 "echo -e 'KeyStrPress space\nKeyStrRelease space\n' | xmacroplay :0 &" b:2
then, put at the beginning of the file .xinitrc in user home the line xbindkeys to have this configuration loaded at startup of X.
This configuration works with wired as well as radio/bluetooth mouse.