OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V  < 1 2  
Reply to this topicStart new topic
> Mouse Right Click Solutions Found!
jpmatrix
post Oct 16 2007, 12:48 PM
Post #16





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



QUOTE(ZDevil @ Oct 16 2007, 05:38 PM) *
The keylaunch command should launch if:
1) you set up the right keys in ~/.keylaunch;
2) keylaunch is already running;
3) you press the right key sequence (it seems you have to first press the modifier key and then the other key, e.g. if [Ctrl]-[1] is right click then you have to press [ctrl] first and then [1].

See if this helps.

I am thinking of disabling the Right Ctrl key as it feels redundant and changing it into a sort meta key (like Ctrl-Alt-Shift), so as to be a dedicated right mouse key trigger button.


you know what ? it works! it's just that i"ve to double check what I type before posting that it doesn't work wink.gif i mean "Mode_Switch" is not "Mode_switch" wink.gif
anyway thank you for this tip !
Go to the top of the page
 
+Quote Post
dlj0
post Oct 16 2007, 01:26 PM
Post #17





Group: Members
Posts: 219
Joined: 3-March 06
Member No.: 9,282



QUOTE(ZDevil @ Oct 16 2007, 02:44 AM) *
QUOTE(dlj0 @ Oct 16 2007, 03:15 AM) *
I remember xmonobut from pdaXrom. It was real, real tiny, and controlling it was more trouble than it was worth. What is wrong with using keylaunch to remap the button order through xmodmap?

Sorry, i don't get it. How to remap the mouse buttons to keyboard keys using keylaunch? rolleyes.gif


I found this somewhere, but don't recall where. my ./.keylaunchrc file has:

key=.*.1:xmodmap -e "pointer = 1 2 3"
key=.*.2:xmodmap -e "pointer = 2 1 3"
key=.*.3:xmodmap -e "pointer = 3 1 2"

#special keys

key=...F9:orage
key=...F10:gpe-contacts
key=...F13:icedove
key=...F12:iceweasel
key=...F11:xfce4-popup-menu

# brightness adjusting

key=..*3:setfl -
key=..*4:setfl +

The first set remaps the "buttons" on the mouse, so that Ctrl-1 will have a tap be the left mouse button, Ctrl-2 maps a tap to Button 2, and Ctrl-3 to 3. It works, but not as fluidly as I'd like, of course.

The function-key mappings are for the keys along the bottom row of the keyboard, and the brightness stuff I think you told us about.
Go to the top of the page
 
+Quote Post
dlj0
post Oct 16 2007, 01:28 PM
Post #18





Group: Members
Posts: 219
Joined: 3-March 06
Member No.: 9,282



QUOTE(ZDevil @ Oct 16 2007, 05:18 AM) *
You are right, dlj0! keylaunch works. Thank you! wink.gif

Just install the keylaunch package and set up a ~/.keylaunchrc like this:


And interestingly, after installing keylaunch the pointer jumping issue is alleviated.


yeah? Not for me.
Go to the top of the page
 
+Quote Post
dlj0
post Oct 16 2007, 01:29 PM
Post #19





Group: Members
Posts: 219
Joined: 3-March 06
Member No.: 9,282



QUOTE(jpmatrix @ Oct 16 2007, 07:57 AM) *
keylaunch installed
hmmm... excuse my ignorance, but how do you do "F12" and "Mode_Switch" button ??? smile.gif


As far as F12 goes,

key=...F12:iceweasel

does what it should. I have no idea how to set up Mode_Switch. Is that the Fn-key?
Go to the top of the page
 
+Quote Post
dlj0
post Oct 16 2007, 01:37 PM
Post #20





Group: Members
Posts: 219
Joined: 3-March 06
Member No.: 9,282



QUOTE(ZDevil @ Oct 16 2007, 11:38 AM) *
The keylaunch command should launch if:
1) you set up the right keys in ~/.keylaunch;
2) keylaunch is already running;
3) you press the right key sequence (it seems you have to first press the modifier key and then the other key, e.g. if [Ctrl]-[1] is right click then you have to press [ctrl] first and then [1].

See if this helps.

I am thinking of disabling the Right Ctrl key as it feels redundant and changing it into a sort meta key (like Ctrl-Alt-Shift), so as to be a dedicated right mouse key trigger button.


Can you get keylaunch to somehow give us back the keys like : \ * etc that are lost in iceweasel/icedove/firefox/etc? I couldn't get that since I couldn't see what to call those things, and the literal strings are misinterpreted. Maybe preceeding them with \??
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 16 2007, 01:43 PM
Post #21





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Yes, the [Fn] key is commonly mapped to Mode_swtich (not Mode_Switch) in the Zaurus keymaps, or Mod4 in some other programs (such as xbindkeys).

I am still seeing less mouse ghost after running keylaunch in the background when loading IceWM, even though it only helps a bit when drawing in xournal (a harder press also make better registers).
Go to the top of the page
 
+Quote Post
jpmatrix
post Oct 17 2007, 03:56 AM
Post #22





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



+1
mouse is still jumping, even with keylaunch launched smile.gif

anyway, i'm trying to bind "Fn+3" to brightness, as it should be, but it does not seem to work...
even with this howto : http://www.tyrannozaurus.com/files/oesfarc...php/t20538.html

is it impossible to have Mode_switch and 3 binded ???
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 17 2007, 04:19 AM
Post #23





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I use xbindkeys-config (a frontend of xbindkeys) and the [Fn] is recognized as Mod4.
Go to the top of the page
 
+Quote Post
jpmatrix
post Oct 17 2007, 08:59 AM
Post #24





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



QUOTE(ZDevil @ Oct 17 2007, 02:19 PM) *
I use xbindkeys-config (a frontend of xbindkeys) and the [Fn] is recognized as Mod4.


did you just drop keylaunch to use xbindkeys or do you use both ?
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 17 2007, 09:21 AM
Post #25





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I use both: keylaunch is for fixing mouse buttons, xbindkeys is for creating handy key combos for shell commands (like setfl).
The two work differently. For example, you cannot use keylaunch to set up a combo [Fn]+3 & 4 to adjust brightness, as the modifier keys are restricted to [Shift], [Ctrl] and [Alt] only. xbindkeys seems more powerful, but seems not being able to bind mouse buttons to keyboard (but correct me if i am wrong).
Of course i think you can do away with xbindkeys if you don't need to use the [Fn] to do fancy things.
I notice that keylaunch seems to have a bit overhead when looking at the CPU monitor in the IceWM taskbar. But I still need it to have a working solution to mouse right clicks, even though I find xmonobut lighter and more elegant. xmonobut falls short of not being able to trigger mouse 2 and 3 buttons simply by pressing the hotkeys (unlike what is said in the documentation); I can only do middle and right clicks by tapping the tiny little mouse icon in the taskbar.
Go to the top of the page
 
+Quote Post
Chero
post Oct 27 2007, 10:13 AM
Post #26





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



http://www.gnomefiles.org/app.php/Gestikk_...ure_Recognition

the above page talks about a pyhon apps to "simulate key presses". Could it be of use ?
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 11 2008, 12:43 AM
Post #27





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I was trying something a bit weird on the xbindkeys yesterday. I have been thinking of a working solution for the mouse right click key. I compiled the snippet Capn Fish provided (which looks pretty much like this). But it seems to do nothing and I don't know how to get it working.
What I did is to bind both the Left and the Right click buttons to the same key (I use the japanese or the "grave" key since it's kinda useless), mapping right button first and then left. Pressing the key once activates right click. Pressing it again reverts back to left click. And so on. Kinda weird, but it seems to do trick. tongue.gif

Here is the relevant sections in my ~/.xkeybindrc
CODE
#Right click
"xmodmap -e "pointer = 3 1 2""
    c:105
    grave

#Left click
"xmodmap -e "pointer = 1 2 3""
    c:105
    grave

(You need to remove the code for the Control key if you use xbindkey-config because it automatically adds Control to the mapping even if you just press "grave")
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 13 2008, 07:59 AM
Post #28





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



My apology, Capn_Fish! Probably I did something wrong in my first run, but then I tried again and the binary works! And it is faster and lighter than xbindkeys which causes a slight delay.
I have also compiled one for middle mouse button and will upload them later if testing is ok. wink.gif
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th December 2014 - 12:44 AM