Help - Search - Members - Calendar
Full Version: Feature Modification
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
scoutme
ctrl, alt or middle/right click should be mappable on the buttons next to the jog (the ok/cancel ones)
scoutme
no one agrrees...?
pgas
edit the file /usr/bin/inputconfig.py

add the lines

CODE
self.store.append(["side ok",131,True])
self.store.append(["side cancel",132,True])


and
CODE
self.store1.append(["side ok",131,True])
self.store1.append(["side cancel",132,True])


And run the input setup app might be enough to see you wish come true.

Untested....
scoutme
works perfectly - thanks smile.gif
scoutme
well, would be very usefull some sort of fast switching between different input configurations. It's annoying restarting X when you switch lanscape and pdamode, and right/middle clicks mapped to side buttons are not usable when in laptop mode.
donquixote
You use the side buttons when in landscape mode? I don't, I would find it very inconvenient.

dq


***

Edit: Oh, wait I just re-thought what you were talking about-- I get it now and I agree with you.

I guess a workaround would be to re-map the ok and cancel buttons to the ones that used to be the alt and right click buttons-- but you're right that is annoying.

q
pgas
ok to do this.

set the key with inputconfig for the portrait and save

cp /etc/X11/kb/userdefined.xmodmap /etc/X11/kb/userdefined.portrait


set the key with inputconfig for the landscape, save and copy

cp /etc/X11/kb/userdefined.xmodmap /etc/X11/kb/userdefined.landscape

* edit /etc/sysconfig/clamshell/landscape.sh
and add
CODE
xmodmap /etc/X11/kb/userdefined.landscape


* edit /etc/sysconfig/clamshell/portrait.sh
and add
CODE
xmodmap /etc/X11/kb/userdefined.portrait


And it should do what you want.

Note: try too take look at /etc/X11/kb/corgi.xmodmap and userdefined.xmodap , a bit of xmodmap documentation and use xev in a console to find the keycode.

I don't mind helping you at all, it's just that it's not that difficult to understand and you might like to do these things yourself.
pgas
actually after setting the keys with input config, I thinkl calling
CODE
xmodmap /etc/X11/kb/userdefined.xmodmap
in a console should be enough.

For Laze: I wonder if it would not be a good thing to add calls to clear Modx and Add Modx in the userdefined.xmodmap when it contains modification for ALt and Ctrl bindings.
scoutme
in fact, I really apreciate your help. The reason for I opened this thread is that I think the feature should be officially implemented in the distro, maybe in the pyton tools. Actually, I opened a feature request in the pdaxrom site wink.gif

anyway, nice hint wink.gif
scoutme
...mouse clicks are mapped with xmodmap too?

I don't think so.
I cannot find where the file input.cfg, modified by inputconfig.py, is used during the matchbox start sequence
pgas
hmm, you are right, from what i see the key mapping for the click are in fact stored as environnent variable when X start (in the startx script).

That's why you need to restart X....

I'm not sure if there is another solution in this case... sad.gif exept using something like the xmonobut applet instead of the key modifier for clicks in portrait...
Laze
X needs to be restarted to change the mapping of the ctrl+alt keys and the right/middle mouse buttons layout - actually the ctrl+alt also changed under clean bash after reboot.

The idea with two different mappings for the two different rotations have been discussed and will probally implemented along the way later - the ideal situation would allow you too map each key :-)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.