LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-09-2007, 04:02 PM   #1
utahnix
Member
 
Registered: Dec 2006
Location: Utah, USA
Distribution: openSUSE
Posts: 72

Rep: Reputation: 15
How to make mid-mouse button send key press to application


I'm simply looking for a way to make my scroll button (as a middle mouse button) send the key press Shift+F12 when I'm actively using Firefox.

In other words, when I directly press the scroll wheel (MS intellimouse) I want it to initiate Shift+F12, but only when I'm running Firefox.

Why? Because that's the hotkey Firefox Showcase uses...
 
Old 10-09-2007, 05:05 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 64
Have you tried imwheel?
 
Old 10-09-2007, 05:14 PM   #3
utahnix
Member
 
Registered: Dec 2006
Location: Utah, USA
Distribution: openSUSE
Posts: 72

Original Poster
Rep: Reputation: 15
I can't seem to get it to work in imwheel...

xev shows the middle mouse button is button 2.

So I had this in my .imwheelrc file:

"firefox"
None, Button2, Shift_L|F12

But it doesn't work.

I do have imwheel handling my left and right side mouse buttons (MS intellimouse) in firefox and konqueror, but that's the extent of my .imwheelrc file. But imwheel is working, at least.

I thought perhaps the label or class "firefox" had something to do with it, so I tried things like "^firefox", "firefox-bin", ".*firefox.*" and so on. No go.

So either something is blocking it or I'm doing something completely wrong.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get key press and release events on kernel 2.6 for a application in C? abhijeet Programming 2 04-24-2007 12:37 AM
Bind key to 3rd mouse button moo-cow Linux - Software 0 02-23-2007 06:40 PM
Beryl crashes X server if I move mouse or press a key! dezireduser Linux - Software 2 12-13-2006 01:58 PM
Map Mouse Button to Key Parksy Linux - Hardware 0 01-07-2004 08:00 PM
middle mouse button is paste.. but what if i dont have a mid mouse button? kublador Linux - Newbie 4 09-02-2003 08:59 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration