LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-10-2007, 09:28 AM   #1
AlteRFirE
Member
 
Registered: Nov 2006
Posts: 48

Rep: Reputation: 15
mouse binds for interactive desktop


Heya guys, i have a G5 mouse and suse 10. for the life of me i cannot find how to bind my mouse buttons to the keyboard, please help.

i need to bind my "thumb", left/right scroll and middle mouse to "a s d f" resectively - only suse 10 dosent pick up all my buttons. If anyones knows of a program that handles this, particularly one that can be dsiabled for regular desktop use that would be handy. i've googled alot and found nothing that works to the degree that is neccisary, as i wanted to figure it out for myself. no such luck. im aware of programs like joy-2-keys for windows, is there one for linux?

Last edited by AlteRFirE; 01-10-2007 at 09:35 AM.
 
Old 01-11-2007, 05:56 PM   #2
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
I don't know if I can be of any help, but I find that interesting..!

What exactly do you need that for / what are you trying to do?

I don't know if I understand correctly: do you want a, s, d and f to generate mouse events or the other way around, have your mouse generate keyboard events?

If you want your mouse to send keyboard events you could hack that together using a combination of xbindkeys and xsendkeycode/xsendkeys (from the lineakd package)...
 
Old 01-11-2007, 10:26 PM   #3
AlteRFirE
Member
 
Registered: Nov 2006
Posts: 48

Original Poster
Rep: Reputation: 15
Yeah i tried xbindkeys and xsendkeycode/xsendkeys but they wouldn't configure or install properly - if they asked for prerequisites i had them.

What i want is to be able to press my thumb button on my mouse and see the letter "a" typed in my xterm.
WHY - you may ask... because world of warcraft is not supported on linux and for the temporary solution to become a perminent viable solution it rests soley apon whether i can use the extra buttons on my mouse as shortcuts to my keyboard as WoW doesn't like extra mouse binds either.
e.g:
bind mouse right click to A
tell WoW A is (do something in-game)
result:
right click and (something in-game) happens
 
Old 01-12-2007, 03:41 AM   #4
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Well, of course there is qjoypad that does exactly what you want ... for joypads and joysticks. I have not found any easy-to-use GUI tool which does the same for mouse, though...

But all hope is not lost. I am really sure you can get this working!

I bet it is possible to use only imwheel for that, but I haven't looked into it.

I used xbindkeys, however, and it seems to work.
Just grap an RPM from rpmfind.net or so, if you can't compile the source code.

If you can't get lineakd to install, I found an alternative which sends X key events. It's called xvkbd.
Actually, it is a virtual on-screen keyboard, but you can get it to do what you want...

Once you installed xbindkeys, you set up your ~/.xbindkeys this way:
Code:
"xvkbd -xsendevent -text a"
  b:6
The second line is which button events should be catched. Here, it is mouse button 6 (which is the thumb button on my mouse).
And the line above it says which command should be launched upon this event.

So what you have to do is use xev | grep button to find out how X numbers your physical mouse buttons, and then set up two of those lines in .xbindkeys for each mouse button and each key to send, repectively.

Be sure you restart xbindkeys after changing the config file.
Also, make sure to kill xbindkeys after the fun (you could write a shell script for starting it before wine and killing it afterwards).

Let me know if that works..

~ fabian
 
Old 01-12-2007, 11:54 PM   #5
AlteRFirE
Member
 
Registered: Nov 2006
Posts: 48

Original Poster
Rep: Reputation: 15
thx fabs, i'll give it a go
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 07:48 PM
interactive and non-interactive shell linuxjamil Programming 3 09-03-2006 08:42 PM
Mass Interactive Desktop beta/other IRIX style desktops Dymitry Linux - General 1 02-27-2006 06:07 PM
Red Hat Enterprise 3 AS Binds Config Different louisb Linux - Enterprise 2 02-14-2005 01:27 PM
binds moonspell *BSD 2 12-11-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration