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 Sat 20 Sep 2014, 18:07
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Where do I adjust JWM clock format?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
mouldy


Joined: 04 May 2005
Posts: 498

PostPosted: Thu 29 Sep 2005, 08:28    Post subject:  Where do I adjust JWM clock format?  

I always liked having seconds and date displayed. Know how to do it in fvwm95 but not with JWM.

By way I really like 1.0.5 overall. Dont much care for the generic icons or even the wallpaper, but maybe it will help some newbie. Thats easy to change. And Mozilla, wow. I'd not downloaded a Mozilla version of Puppy before as I have a very slow dialup connection Usually the barebones or MurgaOpera version is significantly smaller and I just add back Firefox and Opera as needed. However really surprised to find Mozilla is much faster on my computer than either Firefox or Opera. Not as fast as Dillo-patched, but I am not complaining.

Great effort everyone. Thanks.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 29 Sep 2005, 12:47    Post subject:  

You do that in /root/.jwmrc.

There is a section that defines the format of the clock. See the JWM Documentation
Back to top
View user's profile Send private message Visit poster's website 
mouldy


Joined: 04 May 2005
Posts: 498

PostPosted: Thu 29 Sep 2005, 13:58    Post subject:  

Clock Settings

The Clock tag controls the look of the clock on the tray. This tag has an optional attribute, format, which specifies the format of the clock (see the strftime man page for formatting options). An optional attribute, enabled, may be used to specify if the clock is displayed. Possible values are true and false. The default is true. Within this Within this tag, the following tag is supported.

* Program
The program to launch when the clock is clicked.


Ok, this doesnt tell me much. Said look at strftime. I did that and just gives me format strings to set time like I did in fvwm95. However nowhere does it mention how to add this format string. There doesnt seem to be an existing one in /root/.jwmrc that I can modify. When I tried adding a line in clock section <format>%D%T<format> all that happened is that the menues changed to gray and tiny font.

Here is all that is in /root/.jwmrc that concerns clock:


<Clock>
<Program>xclock</Program>
</Clock>

Where and how do I add a line to format the time and date? If nobody knows, then I am not that fussed about making JWM work and will just put fvwm95 back. I know how to make it do what I want.

[/i]
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 29 Sep 2005, 15:08    Post subject:  

Quote:
However nowhere does it mention how to add this format string.
Actually it does... If you know the XML lingo.

In XML (the format of this file) an attribute is a name/value pair that goes inside the tag element (The value always goes between quotes)

So when he says that Clock has a format attribute he means the following:
Code:

   <Clock format="%D%T">
      <Program>xclock</Program>
   </Clock>


In this case this XML Segment says the following in XML lingo:
The Clock tag has a format attribute with value "%D%T" and a Program tag with value xclock.
Back to top
View user's profile Send private message Visit poster's website 
mouldy


Joined: 04 May 2005
Posts: 498

PostPosted: Thu 29 Sep 2005, 17:30    Post subject:  

Would you believe I tried exactly that at one point in time only without the quotation marks. People who do documentation tend to assume the end user is as familiar with their product as they are. They gotta learn that giving a n example to illustrate their point isnt going to kill them. By way works fine when I added the quotation marks.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 29 Sep 2005, 20:44    Post subject:  

Okay, thoughtjourney might be interested in adding that to
jwmConfig, if you ask pretty-please.
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 29 Sep 2005, 22:51    Post subject:  

mouldy wrote:
People who do documentation tend to assume the end user is as familiar with their product as they are. They gotta learn that giving a n example to illustrate their point isnt going to kill them.
Mouldy. That documentation was most likelly writen by Joe who I guess is bussy writting the actual window manager.

One of the great things about open source is that everyone can contribute. You found something that could be improved. You could offer Joe to write a more comprehensive help.

I realize that not everybody can (or want to) be a contributor some people just want to use the computer in the most efficient way possible. In that case, asking for an example or providing constructive feedback may go a long way.

Regarding the exact wording of the help "the clock tag has an attribute...", please consider that if you work day in and day out using certain terms, they become part of your vocabulary and you use them without thinking. That happens to lawyers, doctors, administrators, anyone, I'm sure it happens to you. When I read the explanation I didn't even think that it would be unreadable to someone else until you asked. That's when I clarified it.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0582s ][ Queries: 12 (0.0040s) ][ GZIP on ]