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 Fri 25 Jul 2014, 19:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
miniXcal - a little companion for the clock
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Author Message
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sun 30 Apr 2006, 00:03    Post subject:  miniXcal - a little companion for the clock  

I wrote a little program (7KB), which I call miniXcal that will satisfy the immediate need for a simple calendar. Through .jwmrc you can set a program to be executed when the clock is being clicked, this is where miniXcal fits. miniXcal will be shown at the current mouse location, on top of all other windows, and will disappear when the user clicks somewhere out of the calendar. Very simple and comfortable IMHO. I really hope that you'll find it useful, and maybe include this in the next Puppy!

I'm attaching the source file plus a binary, installation instructions:
1) Download and untar the file:
Code:
tar -xvzf miniXcal.tar.gz

2) Copy miniXcal binary to somewhere useful:
Code:
cp miniXcal/miniXcal /usr/bin/miniXcal

3) Change .jwmrc:
Code:
From:
<Clock>xclock</Clock>
To:
<Clock>miniXcal</Clock>

4) restart JWM.

What do you think?

{new version below}

_________________
Lior Tubi

Last edited by lior2b on Sun 30 Apr 2006, 07:45; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 30 Apr 2006, 00:15    Post subject:  

nifty Smile

the deactivation takes some clicks and seconds in Enlightenment, you might add a right-click to exit?
Mark
Back to top
View user's profile Send private message Visit poster's website 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sun 30 Apr 2006, 07:44    Post subject:  

Thanks Smile I'm attaching a little update: miniXcal now exits on Enter, Escape or Space key press and on right mouse click press.
miniXcal.tar.gz
Description  miniXcal - a little calendar program
* UPDATED *
Binary + Source
gz

 Download 
Filename  miniXcal.tar.gz 
Filesize  14.87 KB 
Downloaded  930 Time(s) 

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Sun 30 Apr 2006, 09:41    Post subject:  

Will this work with older versions of JWM? I'm running Puppy 1.07 and clicking on the clock does not start miniXcal, although it does run nicely from a console. I made the modification in .jwmrc and restarted JWM. I even tried restarting X, but that didn't help either.
_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send private message 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sun 30 Apr 2006, 09:50    Post subject:  

JWM has the option to run a program when the clock is clicked since v0.17. I'm pretty sure Puppy 1.0.7 has a greater version, hence it should work. Two things I can think of, try typing: "which miniXcal" at console, if it doesn't output anything it means you didn't copy miniXcal to the right place (like /usr/bin). Second, try "jwm -p" at console, to check the .jwmrc for errors. Can't think of another idea...
_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sun 30 Apr 2006, 10:00    Post subject:  

Hey, I just gave it a try. Well worth the 7KB, and it adds a function jwm has been missing for a long time. Will push to put this into 109, thanks Lior.

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Sun 30 Apr 2006, 10:03    Post subject:  

Here is some feedback:

Code:
# which miniXcal
/usr/bin/miniXcal

# jwm -p
JWM: warning: configuration error: invalid Clock option: Clock


I must have done something wrong in .jwmrc. Here are relevant lines:

Code:
   <Clock>
      <Clock>miniXcal</Clock>
   </Clock>

_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send private message 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sun 30 Apr 2006, 10:08    Post subject:  

Very Happy
Instead of:
Code:
<Clock>
   <Clock>miniXcal</Clock>
</Clock>

write only:
Code:
<Clock>miniXcal</Clock>

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sun 30 Apr 2006, 10:09    Post subject:  

Yes, that is a mistake. You basically have two sets of <Clock> tags. So delete one set.

Code:
<Clock>miniXcal</Clock>

instead of
Code:
   <Clock>
      <Clock>miniXcal</Clock>
   </Clock>


Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sun 30 Apr 2006, 10:13    Post subject:  

Nathan, I was quicker Razz
Thanks for including this, 1.0.9 will turn out to be the best Puppy ever!!

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Sun 30 Apr 2006, 10:15    Post subject:  

Quote:
Nathan, I was quicker Razz

Apparently so. Let's race again when I'm not so tired Wink

Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
pakt


Joined: 04 Jun 2005
Posts: 1089
Location: Sweden

PostPosted: Sun 30 Apr 2006, 10:16    Post subject:  

Just found the problem. Nathan, you were on the right track. The lines should read:
Code:
   <Clock>
      <Program>miniXcal</Program>
   </Clock>

I had experimented some time back, trying to get 24H time and I must have screwed up the lines then.

Now miniXcal works. Very nice Lior! Thanks Lior & Nathan for your help Smile

Paul

_________________
Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart Cool
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sun 30 Apr 2006, 20:27    Post subject:  

i wrote a simple script for Icewm that pops up the date and time when the clock is clicked, and the date and time can be copied to the clipboard ... i also put buttons on the window to run ical or xclock ... would it be a useful idea to have miniXcal automatically copy a date/time string to the clipboard?
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Sun 30 Apr 2006, 21:26    Post subject:  

yeah, an "ical" button in minixcal would be nice!
Or, integrate ical somehow.
Back to top
View user's profile Send private message Visit poster's website 
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Tue 09 May 2006, 08:30    Post subject:  

minixcal 1.1
Changelog:
(*) Renamed to minixcal, the capital X was too annoying...
(*) Added week numbers
(*) Enhanced program positioning
(*) Added a thin black border
(*) Command line arguments -v --version -h --help display version and authour information
(*) If ical is installed, minixcal displays a button to execute Ical

Notes:
(*) The executable weights now 8KB Smile
(*) G2, gtk1 is really handicapped when it comes to clipboard handling. The clipboard is only saved while the program is working, but hence minixcal exits on mouse leave it is not possible to keep the date (any conventional suggestion would be great!)... thanks for the ideas anyways Smile
(*) I looked into binding Ical and minixcal a little bit more, but I won't from two reasons: 1) Ical's output is a mess 2) minixcal is not a calendar program, this is why we feature Ical Smile
minixcal-1.1.tar.gz
Description  minixcal 1.1
Binary + Source
gz

 Download 
Filename  minixcal-1.1.tar.gz 
Filesize  17.51 KB 
Downloaded  1019 Time(s) 

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0835s ][ Queries: 13 (0.0073s) ][ GZIP on ]