LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-06-2010, 06:28 AM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
fvwm - scroll desktops with mouse wheel


Hi,
I am using fvwm and usually switch between desktops by scrolling to the edge of the screen or by using the pager. I have however just invested in a new laser mouse which has a tilting wheel on it and I thought it would be pretty useful to map the wheel up, down, left and right to the root window and switch virtual desktops with them.
SO, if I press to the right, it will move one desktop to the right, the same with any other direction of course!

I am fine with mapping the mouse buttons, my only issue is I am unsure how to switch desktop windows. Is there a function/module which can be called to navigate around desktops?

I know it can be done as I have found a reference to it online, only the author doesn't tell how s/he has done it!

Thanks
 
Old 01-06-2010, 08:48 AM   #2
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Original Poster
Rep: Reputation: 120Reputation: 120
hmmm... after just trying something out, it seems I lied! My mouse has the tilt wheel but I cannot seem to bind to this using the standard mouse identifiers (Mouse 5 etc). When I press the side button in the root window, the builtin fvwm menu pops up so it must be picking up the signal somehow. I have tied mapping buttons 6-9 to NoOp (4 and 5 are scroll up and down) however this does not work.

I have used xev and it shows the buttons being send as 6, 7 and 8 respectively. I have tried re-mapping these using xmodmap but to no avail!

Any help is much appreciated!
Thanks

Last edited by devnull10; 01-06-2010 at 09:52 AM.
 
Old 01-21-2010, 02:46 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
How the buttons are mapped doesn't have anything to do with fvwm, it's X which does that. Each wheel is really two buttons, one for each direction (plus another one if the wheel is clickable). Since your buttons are doing things that are bound to some other button (i.e., display a menu) then my guess is that your mouse is not correctly configured.

As said, that's an Xorg thing, so you will have to fix it either by correctly tunning your xorg.conf or your hal policies if you are using hal to configure your X hardware. Things like the number of buttons and the mouse protocol are configurable this way. That's probably where your problem lies, I can't be sure though.
 
  


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
How do I get my mouse-wheel to scroll? MurphyB2005 Slackware 8 04-22-2005 12:16 AM
4d wheel mouse - scroll wheel no worky CamelofCamelot Linux - Hardware 1 10-28-2004 08:33 PM
Mouse scroll wheel garf12 Linux - Software 3 03-06-2004 08:24 AM
Mouse Wheel Scroll 123 Paul Linux - General 10 01-01-2004 05:11 PM
Mouse Wheel Scroll Muddy Linux - General 6 06-11-2002 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:38 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