Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 14 Nov 2019, 14:46
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
JWM: Disable scrollwheel switching virtual desktops
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
MochiMoppel


Joined: 26 Jan 2011
Posts: 1925
Location: Japan

PostPosted: Mon 21 Jul 2014, 00:49    Post subject:  JWM: Disable scrollwheel switching virtual desktops
Subject description: Change one of the most annoying JWM behaviors
 

When the mouse pointer hovers over a window, scrolling the scrollwheel will move the window contents up or down as expected. However as soon as the pointer hovers outside of the window area, the scrollwheel switches virtual desktops. This can be outright confusing for new users and still annoying for experienced users. JWM provides no option to reconfigure mouse bindings, but this behavior can be disabled with a trick.

Step 1: Edit the file /root/.jwm/jwmrc-personal. Add 2 lines:
    <JWM>
    <RootMenu onroot="4"/>
    <RootMenu onroot="5"/>
Step 2: Restart JWM

That's it.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1631
Location: nyc

PostPosted: Tue 22 Jul 2014, 03:44    Post subject: Re: JWM: Disable scrollwheel switching virtual desktops
Subject description: Change one of the most annoying JWM behaviors
 

MochiMoppel wrote:
When the mouse pointer hovers over a window, scrolling the scrollwheel will move the window contents up or down as expected. However as soon as the pointer hovers outside of the window area, the scrollwheel switches virtual desktops. This can be outright confusing for new users and still annoying for experienced users. JWM provides no option to reconfigure mouse bindings, but this behavior can be disabled with a trick.

Step 1: Edit the file /root/.jwm/jwmrc-personal. Add 2 lines:
    <JWM>
    <RootMenu onroot="4"/>
    <RootMenu onroot="5"/>
Step 2: Restart JWM

That's it.


cool. is there any way to make it switch through the windows on a given desktop as its default behavior and maybe make the scrolling through desktops a ctrl+scroll option?

and if that's doable, how about shift+scroll to move up and down, alt+scroll to move left and right, alt+ctrl+scroll to increase/decrease vertically, alt+shift+scroll to increase/decrease horizontally, and shift+control+scroll as a sendto (grab the window and release it when the desired desktop is reached)?

Very Happy
Back to top
View user's profile Send private message 
Les Kerf

Joined: 24 Jun 2012
Posts: 317

PostPosted: Tue 22 Jul 2014, 20:51    Post subject:  

THANK YOU, THANK YOU THANK YOU! Did I say thank you?!?

That solves the most annoying, useless feature I have EVER encountered in Puppy Linux. This feature nearly caused me to give up on Puppy before I was barely even started; I will most DEFINITELY pass this on to anyone I introduce Puppy to in the future.

Les
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 22 Jul 2014, 23:49    Post subject:  

Yes, thank you!
_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1538
Location: Drøbak, Norway

PostPosted: Fri 25 Jul 2014, 21:05    Post subject:  

Quote:
THANK YOU, THANK YOU THANK YOU! Did I say thank you?!?

Quote:
Yes, thank you!

Ditto!
MochiMoppel, you're a genius!

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
jopervasco

Joined: 25 Mar 2011
Posts: 571
Location: France

PostPosted: Thu 23 Apr 2015, 16:33    Post subject:  

Thank you very match!
_________________
Visitez mon site http://joreveur.info
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1925
Location: Japan

PostPosted: Sat 13 Apr 2019, 23:30    Post subject:  

Above trick does not work anymore in early versions of JWM 2.3
For newer versions radky posted an official solution here.
See also the related github discussion linked in radky's post.
Back to top
View user's profile Send private message 
James186282


Joined: 08 Sep 2009
Posts: 269
Location: Minnesota

PostPosted: Wed 31 Jul 2019, 13:08    Post subject:  

What a relief to have this feature turned off. I tried for a long time to figure out what I was doing to flip to a different display and never clued it that the scroll wheel was the source. Can someone explain what these two lines do? I've dug into JWM a bit and think its great but want to learn.

If anyone is taking votes I would urge that all future releases have this scroll wheel taking you to different desktops be normally left off.

T H A N K Y O U !

_________________
Science is what we understand well enough to explain to a computer.
Art is everything else we do.
Donald Knuth
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5547
Location: King's Lynn, UK.

PostPosted: Wed 31 Jul 2019, 16:05    Post subject:  

James186282 wrote:
What a relief to have this feature turned off. I tried for a long time to figure out what I was doing to flip to a different display and never clued it that the scroll wheel was the source. Can someone explain what these two lines do? I've dug into JWM a bit and think its great but want to learn.

If anyone is taking votes I would urge that all future releases have this scroll wheel taking you to different desktops be normally left off.

T H A N K Y O U !


Diff'rent strokes for diff'rent folks, Jim.

I'm the complete opposite of you.....and, indeed, many other Forum members. Personally, I happen to think it's one of the best features of JWM.

Radky has it disabled by default in DPup 'Stretch'. I made a point of enquiring on the 'Stretch' thread how to turn it back ON. I do use the pager, but I detest that being my sole option.....and with my setup, where I have the task bar dialled right down to minimum height (to maximise screen real estate), it makes the pager extremely small & not that easy to 'hit' quickly.....

Anyway, I like being able to switch desktops by simply finding an empty bit of desk and scrolling. SO much easier than fiddling about in the taskbar all the time......

Let's 'agree to disagree' on this one..!! Laughing Laughing


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1925
Location: Japan

PostPosted: Wed 31 Jul 2019, 21:42    Post subject:  

James186282 wrote:
Can someone explain what these two lines do? I've dug into JWM a bit and think its great but want to learn.
If you want to learn then this is the primary source of wisdom.

As you see you can create many menus in JWM, but each needs a unique "onroot" attribute, normally a number that determines, how this menu is triggered. Numbers 1-5 are reserved for the mouse buttons. Left/middle/right buttons are mapped to numbers 1,2 and 3. Scrollwheel up and down movements are mapped to numbers 4 and 5, meaning you can create a menu that pops up when you scroll up and another menu when you scroll down. You probably don't want to do that as this is equally annoying. The trick is to create menus that are completely empty and assign them to onroot 4 and 5. This effectively causes JWM to let the scrollwheels do nothing and overrides the default desktop switching behavior.
Back to top
View user's profile Send private message 
James186282


Joined: 08 Sep 2009
Posts: 269
Location: Minnesota

PostPosted: Sun 08 Sep 2019, 13:41    Post subject: JWM .jwmrc, xorg.conf,
Subject description: Too much abstraction. Too many players? Head rotates
 

I thought it worked now I'm back to it randomly flipping whatever I'm moving to a different virtual screen. Its frustration talking so no one please take this too seriously but I've always wanted to ask if anyone knows why JWM wasn't just left alone. Not needing two different directories of xml files and fixmenus to do anything when JWM is fairly simple and well documented. I mean if you wanted to have a tool to make it a little easier (Not using a text editor) why not work on .jwmrc and tray without all the inbetween files / abstraction? I would say the same thing about the way wireless works. Wow did that make me crazy trying to find the different subdirectories for which of the 3 or 4 wireless handlers were when I got that all mixed up. I learned how it works at the cli level to understand how frisbee etc were doing things (I think)

When your new and you just want to pop in a Puppy ISO and have a machine? Its unmatched. I can't say enough about how easy and fast it is to have a machine that does everything without you needing to know whats under the hood. But when you get to the point where your having a problem or are trying to fiddle with something obscure that the abstract puppy handler doesn't do its a hair puller. Its a little like the display issue in general. You have your hardware then you have X11. Then someone piles GTX on top or QT5 to make it easier. Then someone makes Ciaro to sit on top of them and so on... I guess I just hate abstraction because I'm the kid that had to take apart the alarm clock to see what really happens.

As to this jwm mouse wheel issue I've gotten so sick of trying to get fixmenus to not turn my system into a mess that I think virtual screens has to be turned to 1 until I find a chill pill. Ha ha

I also have the same issue with xorg.conf I like to make up a file with lots of comments so later I can go back and see what each thing does and lets me change things. However the helper programs just write over whatever I have done and then I'm wondering how I let that happen and why etc.

Not to go on and on but I have a rather a 26K long "Menu.lst" file that boots up my machine that has comments in detail that remind me how to do really obscure things like set debug info to a different port or how to restore boot blocks etc etc etc. Its the old .97 jazz but I don't want newer, less freatures / less understandable.

_________________
Science is what we understand well enough to explain to a computer.
Art is everything else we do.
Donald Knuth
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 582
Location: S.E Australia

PostPosted: Sun 08 Sep 2019, 23:55    Post subject:  

jwm 2.3.2 - 2.3.6 : no scrollwheel fix appears to work. Different fixes available for pre or post these versions.
*** EDIT - I specified wrong versions earlier.

Last edited by ozsouth on Fri 13 Sep 2019, 19:53; edited 1 time in total
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3495
Location: wales

PostPosted: Fri 13 Sep 2019, 17:05    Post subject:  

the solution here seems to work https://github.com/joewing/jwm/issues/366

add to your /etc/xdg/templates/_root_.jwmrc
Code:
<RootMenu onroot="45"/>

it needs to be added after the initial root menu ie ......
Code:
<RootMenu label="Menu" labeled="false" height="MENHEIGHT" onroot="3">
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-desktop.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-system.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-setup.menu

<Separator/>

PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-utility.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-filesystem.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-graphic.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-document.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-calculate.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-personal.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-network.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-internet.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-multimedia.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-fun.menu

<Separator/>

<Program label="Help" icon="help48.png">exec defaulthtmlviewer file:///usr/share/doc/index.html</Program>

<Program label="Exit" icon="shutdown48.png">/usr/sbin/logout_gui</Program>

<!-- </Menu> -->
</RootMenu>
<RootMenu onroot="45"/>


then run fixmenus in a terminal and restart JWM.

_________________
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 582
Location: S.E Australia

PostPosted: Fri 13 Sep 2019, 19:59    Post subject:  

Sorry Phil - I have corrected non-working versions above (should be 2.3.2 - 2.3.6) & your fix doesn't work for jwm 2.3.6 in Slackware-based pups at least. jwm 2.2.x series & 2.3.7 plus are ok. Your recent pups have 2.3.7 or later, hence your fix works in them.
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 644
Location: Bretagne / France

PostPosted: Thu 31 Oct 2019, 07:53    Post subject:  

Hi,
This works for me


Code:
   
<JWM>
<RootMenu onroot="4"/>
 <RootMenu onroot="5"/>

as no effect

Regard.
Code:
JWM v2.3.7 by Joe Wingbermuehle

_________________
xenialpup 7.5 / Linux Kernel: 4.4.95 / Window Manager: JWM v2.3.7
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0660s ][ Queries: 12 (0.0065s) ][ GZIP on ]