One of the useful ways to use the less utility and the GNU utilities that come with
your Puppy is to create calendars. Combining various GNU utilties with the decoration
capacity of urxvt, one can make helpful programs which take little space in memory
and are pleasing enough to look at.
Attached are calendar scripts for the current month, the current term
(or quarter, or trimester, whatever you usually call it), both semesters of a
year, as well as scripts to bring up on screen calendars of the previous, current
and next years.
You call the year script with the additional parameter "-" to view the calendar of the
last year, and with "+" to view the calendar of the next year. With no parameter,
the calendar of the current year pops up.
The semester script automatically detects which semester it is.
The trimester one works fine now. But it might still need some testing, relative to
the roll-around of the three months from November of one year until January of the
next, and similarly for December. I programmed it in the abstract, I think it'll work,
but if you have input on this when those months arrive, I'll be grateful.
As to the monthly calendar, it was designed for quick viewing from an aewm and/or
pekwm menu, so it closes automatically after 10 seconds. No input is needed. it'll
quit on its own, while the other calendars require you to press the 'q' key.
The monthly and yearly calendars are transparent, the other two are not. I didn't
standardize the coloring -- is it necessary? Feedback on colors, anyone?
Four icons are included in the attached *.pet archive, if you need them.
Also two fixed-space TTF fonts. In a console, please type
Code: Select all
fc-cache -r
Enjoy! And Happy New Year to all!
BFN.
musher0
~~~~~~~~~~
P.S. 1 -- To run the above bash scripts you'll need the *.pet archive of the latest
less (v. 470), available at
http://murga-linux.com/puppy/viewtopic. ... ost#815558
P.S. 2 -- I have built in a translation capacity in those scripts. For now, the scripts
react only to LANG="fr_XY.UTF8" and LANG="en_XY.UTF8" environments. Non-
Anglophone or multilingual Puppy programmers / scripters are of course welcome to
adapt for their language the language variables and strings in these scripts.