On Sun, Jan 9, 2011 at 11:13 AM, Cedric Sodhi <[email protected]> wrote: > Hi, this is a "wish" i had for the driver that I'd consider very useful. > I've recently written a simple bash script which scripts the > functionality of the button, an example the button on the wheel changes > which keycodes the wheel sumit and hence which function in cotrnols. > > If anyone is interested I'd like to share it. > > The problem is, where even that is kind of cumbersome, more complicated > interaction because a real pain in the arse. Since the driver will only > emit keyboard events, everything will go through X. > > Right now, I'm using my WM (openbox), to respond to the global keys to > control the behaviour. For example the touchring button emits Ctrl + > Shift + Alt + T which openbox catches and runs my script on, to change > the mappings and give feedback through osd_cat. > > And whereas I could do the same for all buttons and find the most exotic > keybindings to never collide with running programs, it becomes quite > cumbersom to continuously remap them, map the bindings in Openbox and so > on. The amount of required keybindings which are used NOWHERE else on > the system grows exponentially with functionality. > > All these problems would immediately be solved if, instead of > keybindings, actual programs could be bound to keys. It would greatly > simply certain methods and give us a great flexibilty to write our own > complex behaviour without any effort.
Launching scripts from inside a driver is pretty much a non-starter I suspect. One idea that quickly comes to me is perhaps xsetwacom could be extended to allow at least a hand full of the special keys defined in X11/XF86keysym.h. Those "internet keyboard" ones are basically meant to launch scripts and not be used directly by end applications. So although conflict can occur, they will be smaller I think and user can use standard GUI tools (Gnome Keyboard Shortcuts for example) to bind to your scripts as needed. ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
