LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-31-2014, 02:46 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Using "extra" mouse buttons (thumb_left, thumb_right): imwheel?


What is the current "best way" to use these buttons? I did some Google searching and the program "imwheel" pops up. However, as is sometimes the case when searching for Linux related things, Google hits can pop up some really old ways of doing things when there are newer/better ways available. I am looking to apply this in LinuxMint13/Xfce so any solutions that may be Gnome, KDE, or other-desktop specific won't help me.

It appears that Firefox already maps thumb_left and thumb_right to "back" and "forward". That's fine. What I would like to do is map one of these thumb buttons to <escape> for use in the gThumb image viewer program, and the other thumb button to <F11> (i.e., "toggle fullscreen").

Before I go learning imwheel config (granted, which is probably easy), is there a better (more recent) way to accomplish what I am wanting?

Alternately, anyone have any pointers to some existing imwheel example configs that would cover what I want? Looking through the imwheel manpage I am not seeing an exhaustive list of key mapping names (e.g., is the <escape> key called "ESC", "ESCAPE", etc. in the config file?)

Thanks!
 
Old 03-31-2014, 03:21 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Pretty simple at the basic level:

Create the file $HOME/.imwheelrc containing the following:
Code:
"gthumb"
None,   Thumb1, F11
None,   Thumb2, Escape
Run "imwheel"
When done, run "pkill imwheel"

However, the above also kills the "back" and "forward" mappings for thumb_left and thumb_right in Firefox. Which may actually be a bonus for me, since I don't use those, and just get frustrated when I hit them accidentally!

So imwheel DOES work, albeit maybe not the latest/greatest way to accomplish the task. But it does work for what I want. I'd still like to know if there is a "better" way however.
 
  


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
"Back" and "Forward" side-buttons of my mouse Unforgiven79 Linux - Hardware 1 10-31-2006 12:10 AM
how to swap mouse buttons in "xbindkeys" since slackware's xmodmap aint working 4 me? Old_Fogie Slackware 7 10-07-2006 01:29 AM
Suggestion: for "subscribed threads" & "top of page" buttons Old_Fogie LQ Suggestions & Feedback 7 07-10-2006 05:10 PM
Logitech® Cordless Desktop® Optical --- How to use "The Extra Buttons" in Linux lhj Linux - Hardware 12 10-09-2003 07:19 PM
mouse: Buttons "5" ??? Rex_chaos Linux - General 15 08-20-2003 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

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