You are not logged in.

#1 2016-05-13 09:11:26

Kino
Member
From: Stockport, UK
Registered: 2016-04-30
Posts: 109

Sector11 - calendar reminders

Hello Sector11...

You may remember a couple of years ago we were able to "fix" the calendar reminders to give the correct display in conky.
You probably also noticed that some months (like this one - May) still had a problem.

I have now found a fix for this using cal instead of ncal. The only difference is that weeks start on a Sunday instead of a Monday but I can live with that!

In the remind-cal.sh script change

ncal -3$m -bh | awk -v DAYS=${dates} '{

to

cal -B1A1 | awk -v DAYS=${dates} '{

I have only just discovered this so don't have a full years display but at least either one or the other will work.

Kino

Offline

#2 2016-05-13 16:36:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Sector11 - calendar reminders

Kino wrote:

The only difference is that weeks start on a Sunday instead of a Monday

Try:

LC_TIME=en_GB.UTF-8 ncal

smile

EDIT: Actually, you're from Stockport (hello neighbourino!) so en_GB.UTF-8 should already be set hmm

Check the output of:

echo $LC_TIME

If it isn't set properly, use:

sudo dpkg-reconfigure locales

Last edited by Head_on_a_Stick (2016-05-13 16:40:23)

Offline

#3 2016-05-13 17:25:31

Kino
Member
From: Stockport, UK
Registered: 2016-04-30
Posts: 109

Re: Sector11 - calendar reminders

Hi! - I'm actually just 3 miles south - in Hazel Grove.

echo $LC_TIME

produces no output...

Apparently, the thing with cal (not ncal) starting week on Sunday is a known bug and I can live with that.

But, I've only just noticed there is still a slight problem with the calendar display - I was more intent on just checking the general appearance. So there may still be a tweak required.

Offline

#4 2016-05-17 08:55:20

Kino
Member
From: Stockport, UK
Registered: 2016-04-30
Posts: 109

Re: Sector11 - calendar reminders

Now fixed (I hope)

The problem was that cal was highlighting the current day and this affected the display.
This can be corrected by using the following code in remind-cal.sh

cal -h -B1A1 | awk -v DAYS=${dates} '{

Offline

Board footer

Powered by FluxBB