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 Mon 10 Dec 2018, 15:37
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
"This Week" script: in bash, awk, or whatever.
Post new topic   Reply to topic View previous topic :: View next topic
Page 7 of 7 [92 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7
Author Message
musher0

Joined: 04 Jan 2009
Posts: 13147
Location: Gatineau (Qc), Canada

PostPosted: Wed 05 Dec 2018, 04:44    Post subject:  

Sorry to bother you!

I'm sure this insignificant script displaying a month

-- colored with some colors in the 90's register of ANSI codes
-- fading according to in-focus and out-of-focus
-- with the single numbers of the month padded
-- with a little motto at the bottom (hopefully inspiring!)
-- using < rxvt > and < less > to produce a pseudo-GUI
-- multilingual (plus you could add your own locale)
-- with a suggested entry for a pekwm or ae menu

is off-topic and of no interest to anyone! Wink

BFN
hic-et-nunc4-EN.jpg
 Description   
 Filesize   62.99 KB
 Viewed   28 Time(s)

hic-et-nunc4-EN.jpg

hic-et-nunc4.sh.zip
Description 
zip

 Download 
Filename  hic-et-nunc4.sh.zip 
Filesize  2.25 KB 
Downloaded  9 Time(s) 
hic-et-nunc4.jpg
 Description   French version (sorry to impose).
But if LANG variable NOT set to fr, will display in English.
 Filesize   65.43 KB
 Viewed   92 Time(s)

hic-et-nunc4.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)

Last edited by musher0 on Thu 06 Dec 2018, 19:05; edited 1 time in total
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 243

PostPosted: Thu 06 Dec 2018, 16:59    Post subject:  

MochiMoppel wrote:

With little extra code it is possible to pull dates from a database and mark them in the calendar. These dates can be public holidays, birthdays, dentist appointments or whatever.


I'm working on something similar with coloring done it this way (without curses it will be hard to make windows and menus but i'm thinking to use 'select' or 'tput' command):

Code:
cal | grep -w --color=always "$(seq 1 2 31)" | sed 's/31m/32m/g'


or

Code:
a=$(cal | grep -w --color=always "$(seq 1 2 31)"); echo "${a//31m/34m}"


Code:
cal | grep -w -B 6 -A 6 --color=always 10 | sed 's/31m/32m/g' | grep -w -B 6 -A 6 --color=always 20


where '31' is standard color from grep command.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 7 [92 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0983s ][ Queries: 13 (0.0326s) ][ GZIP on ]