LinuxQuestions.org
Visit Jeremy's Blog.
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 03-02-2013, 04:11 AM   #1
moneytoo
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
How to remap mouse wheel in single application?


Hello,

I want to achieve simple thing - control audio volume in Smplayer using mouse wheel. The tricky part is that I need to control the master volume on my AV receiver because the audio in videos is played as bitstream (DTS/AC3 over SPDIF). I'm able to modify the mouse wheel actions in mplayer but unfortunatelly Smplayer doesn't allow such remapping: http://smplayer.sourceforge.net/foru...php?f=2&t=6077

I already use xbindkeys with xvkbd for application specific remapping of both keyboard and mouse. I can remap the wheel for Smplayer window but I'm unable to figure out how to make sure the wheel will work for other applications as well - I'm just unable to simulate mouse wheel action for applications other than Smplayer. (Or is there any other way how to not modify the button for other applications?)

If I try only simulating the wheel, it doesn't work...

Code:
# .xbindkeysrc

"xdotool click 4"
  m:0x0 + b:4

# or

"xvkbd -text "\m4""
  m:0x0 + b:4
However if I add "sleep 0.2" before xvkbd or xdotool, it works (but this is unacceptable delay for me). Also if I try to simulate wheel on keyboard press, it works even without the sleep.

Any help or suggestion?
 
  


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
[SOLVED] PS2 wheel mouse/wheel does not work kph56 Ubuntu 2 12-21-2010 08:42 PM
horizontal mouse wheel scrolling config in Slack 11 [evdev driver instead of mouse] arcanex Slackware 8 12-12-2007 07:18 AM
PS2 wheel mouse/wheel not working jayhel Linux - Hardware 2 06-18-2006 06:54 PM
remap middle mouse button in x dr_mandarin Linux - Software 3 12-04-2004 04:22 PM
4d wheel mouse - scroll wheel no worky CamelofCamelot Linux - Hardware 1 10-28-2004 08:33 PM


All times are GMT -5. The time now is 01:47 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration