Author |
Message |
eMeRy

Joined: 22 Jan 2006 Posts: 86 Location: Hungary,Europe
|
Posted: Thu 30 Mar 2006, 16:50 Post subject:
2.12: How to bring menu to desktop only for rightclick Subject description: Bonus: 24-hr clock format how-to |
|
Only jwm puppy can learn it!
It was annoying for me when I tried to start a program with left click on its desktop icon but I missed, and the rootmenu came up instead of starting the desired program.
I've just learnt the jwm configuration page and found how to avoid it.
There's a 'rootmenu' attribute which name is 'onroot' and its description is:
Quote: | Determine which buttons on the root window activate the menu. This is a list of integers specifying buttons. The default is 123456789. |
So you only need to modify this line in /root/jwmrc file:
Quote: | <!-- jwm menu for puppy Linux -->
<RootMenu label="Start" labeled="false" height="0">
|
to
Quote: | <!-- jwm menu for puppy Linux -->
<RootMenu label="Start" labeled="false" height="0" onroot="3">
|
This way after you reboot X (reboot jwm still buggy) rootmenu come up only for right click of the mouse on desktop.
Bonus: Tweak with the clock in jwmrc file:
Quote: | <Clock>xclock</Clock> |
change to:
Quote: | <Clock format=" %b %d %R ">xclock</Clock> |
It shows the name of the month, day, and clock in 00-24 hour format.
I hope you'll find it useful.
|
Back to top
|
|
 |
virtualsamana
Joined: 25 Oct 2006 Posts: 5
|
Posted: Fri 03 Nov 2006, 05:01 Post subject:
|
|
Wow this is so helpful. If this isn't on the Beginner's Help Forum it should be. Also wondering why future versions of puppy wouldn't have this as its default since the menu on the left click is really annoying especially with a hyper sensitive track pad.
Lovin' the pup,
VM
|
Back to top
|
|
 |
eMeRy

Joined: 22 Jan 2006 Posts: 86 Location: Hungary,Europe
|
Posted: Mon 13 Nov 2006, 15:50 Post subject:
|
|
JWM has changed since I wrote this little tweak. Its 1.8rc4 version is in Puppy 2.12b now, and because of the changes in JWM, if you want to use this trick in Puppy, from now you should do some more modification in your jwm configuration files.
Edited 06/12/13
So first you have to modify this line in /root/jwmrc file:
Quote: | <!-- jwm menu for puppy Linux -->
<RootMenu label="Start" labeled="false" height="0"> |
to
Quote: | <!-- jwm menu for puppy Linux -->
<RootMenu label="Start" labeled="false" height="0" onroot="3"> |
Then in /root/.jwmrc:
Quote: | <Key mask="A" key="F1">root:1</Key> |
line should change to
Quote: | <Key mask="A" key="F1">root:3</Key> |
and in /root/.jwmrc-tray:
Quote: | <TrayButton label="Menu" icon="mini-dog.xpm"/> |
line should change to
Quote: | <TrayButton label="Menu" icon="mini-dog.xpm">root:3</TrayButton> |
and in /root/.jwm/.jwmrc-personal:
Quote: | <Key key="F12">root:1</Key>
...
<Key mask="A" key="F1">root:1</Key> |
lines should change to
Quote: | <Key key="F12">root:3</Key>
...
<Key mask="A" key="F1">root:3</Key> |
That's all
eMeRy
Last edited by eMeRy on Wed 13 Dec 2006, 15:58; edited 1 time in total
|
Back to top
|
|
 |
jason.b.c

Joined: 08 Feb 2006 Posts: 758 Location: Marshfield,MO
|
Posted: Mon 13 Nov 2006, 16:29 Post subject:
Re: 2.12: How to bring menu to desktop only for rightclick |
|
eMeRy wrote: |
Bonus: Tweak with the clock in jwmrc file:
Quote: | <Clock>xclock</Clock> |
change to:
Quote: | <Clock format=" %b %d %R ">xclock</Clock> |
It shows the name of the month, day, and clock in 00-24 hour format.
I hope you'll find it useful.
 |
Yea but what about 12 hour format..?? 12:00 o-clock am ,1:00 o-clock pm
Instead of 0000 hours and 1300 hours..
_________________ Puppy is Awesome..!!!!

|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6266 Location: Knoxville, TN, USA
|
Posted: Mon 13 Nov 2006, 18:17 Post subject:
|
|
Why? I've been using 24-hour time for half a decade now, and I find I miss-set the alarm-clock far less than I used to. It also takes up less space (no tag at the end) and makes calculations easier (the difference between 15 and 8 is much easier than between 3PM and 8AM).
Quote: |
Within the Tray tag the following tags are supported:
* Clock
Add a clock to the tray. The text of this tag may specify a command to run when the clock is clicked. This tag supports the following attributes:
---format
The clock format. See strftime(3) for more information.
---width
The width to use. 0 indicates that the width should be determined from the tray and the font used. The default is 0.
---height
The height to use. 0 indicates that the height should be determined from the tray and the font used. The default is 0. |
http://joewing.net/programs/jwm/config.shtml
I believe this is the stuff you need for the clock format:
%l:%M %p
http://www.hmug.org/man/3/strftime.php
You can also set it to have the day of week, seconds since the epoch, etc.
_________________ Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

|
Back to top
|
|
 |
eMeRy

Joined: 22 Jan 2006 Posts: 86 Location: Hungary,Europe
|
Posted: Tue 14 Nov 2006, 15:02 Post subject:
|
|
Yes, that's the way I learnt how to modify the date format few months ago.
My link leads to a linux man page of strftime(3) which probably gives the same content like the BSD or Mac OS one:
http://www.die.net/doc/linux/man/man3/strftime.3.html
|
Back to top
|
|
 |
Henry
Joined: 29 Jul 2006 Posts: 865 Location: Oregon USA
|
Posted: Sat 02 Dec 2006, 15:55 Post subject:
|
|
I too dislike that the right click brings up the menu - for example, in the center of the Opera icon
I went through the above procedure carefully but without success. This is stated for 2.12b. Should it work in 2.12 final, which is what I am using?
Thanks,
Henry
|
Back to top
|
|
 |
Taavi
Joined: 10 Mar 2006 Posts: 146 Location: Suomi, Finland
|
Posted: Mon 04 Dec 2006, 06:04 Post subject:
|
|
did you add option: onroot="3" to <RootMenu label="Start" labeled="false" height="0">
I tired this too without success and then noticed i forget this. No it works for me.
Taavi
|
Back to top
|
|
 |
Henry
Joined: 29 Jul 2006 Posts: 865 Location: Oregon USA
|
Posted: Mon 04 Dec 2006, 10:09 Post subject:
|
|
Thank you, Taavi. That did it.
Henry
|
Back to top
|
|
 |
Lefty Mills
Joined: 17 Apr 2006 Posts: 21 Location: Eilat on the Re(e)d Sea
|
Posted: Tue 12 Dec 2006, 06:27 Post subject:
|
|
did you add option: onroot="3" to <RootMenu label="Start" labeled="false" height="0">
I would appreciate further clarification. Which file is being modified?
What is the quote of the line before the change, and after the change?
Thank you.
Lefty
|
Back to top
|
|
 |
Henry
Joined: 29 Jul 2006 Posts: 865 Location: Oregon USA
|
Posted: Wed 13 Dec 2006, 12:48 Post subject:
|
|
Lefty,
As eMeRy indicated,
In
/root/.jwmrc
Change
<RootMenu label="Start" labeled="false" height="0">
to
<RootMenu label="Start" labeled="false" height="0" onroot="3">
Change
<Key mask="A" key="F1">root:1</Key>
to
<Key mask="A" key="F1">root:3</Key>
In /root/.jwmrc-tray
Change
<TrayButton label="Menu" icon="mini-dog.xpm"/>
to
<TrayButton label="Menu" icon="mini-dog.xpm">root:3</TrayButton>
In /root/.jwm/.jwmrc-personal
Change
<Key key="F12">root:1</Key>
to
<Key key="F12">root:3</Key>
Change
<Key mask="A" key="F1">root:1</Key>
to
<Key mask="A" key="F1">root:3</Key>
I hope I have transcribed his instructions helpfully.
Henry
|
Back to top
|
|
 |
eMeRy

Joined: 22 Jan 2006 Posts: 86 Location: Hungary,Europe
|
Posted: Wed 13 Dec 2006, 16:05 Post subject:
|
|
Thanx Henry, your interpretation is excellent
I completed my previous post too. I hope now it is clear.
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 8531 Location: Perth, Western Australia
|
Posted: Wed 13 Dec 2006, 20:54 Post subject:
|
|
yeah, I reckon it is annoying also, so have made the changes to disable left-click on desktop for Pup 2.13.
|
Back to top
|
|
 |
richard.a

Joined: 15 Aug 2006 Posts: 510 Location: Adelaide, South Australia
|
Posted: Wed 13 Dec 2006, 22:06 Post subject:
|
|
Agreed it's annoying.
Barry, 2.13 and onwards is cool, what about the ongoing ver1 development, will they need to be manually "fixed"?
_________________ Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?

|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 8531 Location: Perth, Western Australia
|
Posted: Thu 14 Dec 2006, 06:04 Post subject:
|
|
I have no idea about ver1 development, ongoing or otherwise. It is below my radar.
|
Back to top
|
|
 |
|