| Author |
Message |
lior2b

Joined: 04 Feb 2006 Posts: 97 Location: The Holy Land
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 30 Apr 2006, 00:15 Post subject:
|
|
nifty
the deactivation takes some clicks and seconds in Enlightenment, you might add a right-click to exit?
Mark
|
|
Back to top
|
|
 |
lior2b

Joined: 04 Feb 2006 Posts: 97 Location: The Holy Land
|
Posted: Sun 30 Apr 2006, 07:44 Post subject:
|
|
Thanks I'm attaching a little update: miniXcal now exits on Enter, Escape or Space key press and on right mouse click press.
| Description |
miniXcal - a little calendar program
* UPDATED *
Binary + Source
|

Download |
| Filename |
miniXcal.tar.gz |
| Filesize |
14.87 KB |
| Downloaded |
743 Time(s) |
_________________ Lior Tubi
|
|
Back to top
|
|
 |
pakt

Joined: 04 Jun 2005 Posts: 1089 Location: Sweden
|
Posted: 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 
|
|
Back to top
|
|
 |
lior2b

Joined: 04 Feb 2006 Posts: 97 Location: The Holy Land
|
Posted: 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
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1641 Location: Wadsworth, OH (occasionally home)
|
Posted: 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
|
|
 |
pakt

Joined: 04 Jun 2005 Posts: 1089 Location: Sweden
|
Posted: 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 
|
|
Back to top
|
|
 |
lior2b

Joined: 04 Feb 2006 Posts: 97 Location: The Holy Land
|
Posted: Sun 30 Apr 2006, 10:08 Post subject:
|
|
Instead of:
| Code: | <Clock>
<Clock>miniXcal</Clock>
</Clock> |
write only:
| Code: | | <Clock>miniXcal</Clock> |
_________________ Lior Tubi
|
|
Back to top
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1641 Location: Wadsworth, OH (occasionally home)
|
Posted: 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
|
|
 |
lior2b

Joined: 04 Feb 2006 Posts: 97 Location: The Holy Land
|
Posted: Sun 30 Apr 2006, 10:13 Post subject:
|
|
Nathan, I was quicker
Thanks for including this, 1.0.9 will turn out to be the best Puppy ever!!
_________________ Lior Tubi
|
|
Back to top
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1641 Location: Wadsworth, OH (occasionally home)
|
Posted: 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
Nathan
_________________ _________________________________________
Bring on the locusts ...
|
|
Back to top
|
|
 |
pakt

Joined: 04 Jun 2005 Posts: 1089 Location: Sweden
|
Posted: 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
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 
|
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: 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
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Sun 30 Apr 2006, 21:26 Post subject:
|
|
yeah, an "ical" button in minixcal would be nice!
Or, integrate ical somehow.
|
|
Back to top
|
|
 |
lior2b

Joined: 04 Feb 2006 Posts: 97 Location: The Holy Land
|
Posted: 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
(*) 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
(*) 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
| Description |
minixcal 1.1
Binary + Source
|

Download |
| Filename |
minixcal-1.1.tar.gz |
| Filesize |
17.51 KB |
| Downloaded |
830 Time(s) |
_________________ Lior Tubi
|
|
Back to top
|
|
 |
|