Author Topic: Mouse Right Click Solutions Found!  (Read 9353 times)

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Mouse Right Click Solutions Found!
« Reply #15 on: October 16, 2007, 04:48:02 pm »
Quote from: ZDevil
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      i mean "Mode_Switch" is not "Mode_switch"    
anyway thank you for this tip !
« Last Edit: October 16, 2007, 04:48:51 pm by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Mouse Right Click Solutions Found!
« Reply #16 on: October 16, 2007, 05:26:59 pm »
Quote from: ZDevil
Quote from: dlj0
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?  

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.
Zaurus:  SL C3100
ROM:  eabi debian/sid

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Mouse Right Click Solutions Found!
« Reply #17 on: October 16, 2007, 05:28:25 pm »
Quote from: ZDevil
You are right, dlj0!  keylaunch works.  Thank you!  

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.
Zaurus:  SL C3100
ROM:  eabi debian/sid

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Mouse Right Click Solutions Found!
« Reply #18 on: October 16, 2007, 05:29:53 pm »
Quote from: jpmatrix
keylaunch installed
hmmm... excuse my ignorance, but how do you do "F12" and "Mode_Switch" button ???

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?
Zaurus:  SL C3100
ROM:  eabi debian/sid

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Mouse Right Click Solutions Found!
« Reply #19 on: October 16, 2007, 05:37:43 pm »
Quote from: ZDevil
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 \??
Zaurus:  SL C3100
ROM:  eabi debian/sid

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mouse Right Click Solutions Found!
« Reply #20 on: October 16, 2007, 05:43:05 pm »
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).
« Last Edit: October 16, 2007, 05:43:41 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Mouse Right Click Solutions Found!
« Reply #21 on: October 17, 2007, 07:56:55 am »
+1
mouse is still jumping, even with keylaunch launched

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 ???
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mouse Right Click Solutions Found!
« Reply #22 on: October 17, 2007, 08:19:12 am »
I use xbindkeys-config (a frontend of xbindkeys) and the [Fn] is recognized as Mod4.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Mouse Right Click Solutions Found!
« Reply #23 on: October 17, 2007, 12:59:07 pm »
Quote from: ZDevil
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 ?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mouse Right Click Solutions Found!
« Reply #24 on: October 17, 2007, 01:21:14 pm »
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.
« Last Edit: October 17, 2007, 01:22:53 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Mouse Right Click Solutions Found!
« Reply #25 on: October 27, 2007, 02:13:24 pm »
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 ?
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mouse Right Click Solutions Found!
« Reply #26 on: March 11, 2008, 04:43:02 am »
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.  

Here is the relevant sections in my ~/.xkeybindrc
Code: [Select]
#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")
« Last Edit: March 11, 2008, 04:48:47 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Mouse Right Click Solutions Found!
« Reply #27 on: March 13, 2008, 11:59:45 am »
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.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]