You are not logged in.

#1 2020-05-25 10:29:22

PeteSmout
New Member
Registered: 2020-05-25
Posts: 2

[SOLVED]Default Conky shows wrong Day (date ok)

Hi,
I am running BL with default conkys, the one on the right of the screen (BL-Def-Cal.conkyrc) shows the incorrect day of the week (today is Mon, conky shows Sun). I have gone back to the default config file and restarted conky with no effect.

My second conky (BL-Ellipses-Time-Grey.conkyrc) shows the correct day and date.
Screenshot at https://ibb.co/BnmFJVv

Any thoughts?

Pete

Last edited by damo (2020-05-25 10:57:06)

Offline

#2 2020-05-25 10:46:04

damo
....moderator....
Registered: 2015-08-20
Posts: 6,043

Re: [SOLVED]Default Conky shows wrong Day (date ok)

I think you may have found a bug hmm

Change this line in the config BL-Def-Cal.conkyrc

#${goto 28}${color}SU MO ${color0}${time %b %Y}${color} FR SA
${goto 28}${color}MO TU ${color0}${time %b %Y}${color} SA SU

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#3 2020-05-25 10:54:16

PeteSmout
New Member
Registered: 2020-05-25
Posts: 2

Re: [SOLVED]Default Conky shows wrong Day (date ok)

Many thanks solved smile

Offline

#4 2020-05-25 10:59:03

damo
....moderator....
Registered: 2015-08-20
Posts: 6,043

Re: [SOLVED]Default Conky shows wrong Day (date ok)

PeteSmout wrote:

Many thanks solved smile

I have added [SOLVED] to the post title for you - you can do it yourself if necessary by editing the title of your first post. And I have reported the bug  wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#5 2020-05-25 12:32:53

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,154

Re: [SOLVED]Default Conky shows wrong Day (date ok)

Actually it is not a bug the conky was designed that way.
Replace the line in other conkys designed that way with:

# Start week Sunday - uncomment line needed
#${goto 28}${color}SU MO ${color0}${time %b %Y}${color} FR SA
# Start week on Monday - uncomment line needed
${goto 28}${color}MO TU ${color0}${time %b %Y}${color} SA SU

Originally the conky was designed for my use.  My week starts on Sunday.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#6 2020-05-25 13:13:56

damo
....moderator....
Registered: 2015-08-20
Posts: 6,043

Re: [SOLVED]Default Conky shows wrong Day (date ok)

Sector11 wrote:

Actually it is not a bug the conky was designed that way.
....

But the dates in the columns don't match the day if they start with "SU". Look at the output of

$ ncal -b
      May 2020        
Mo Tu We Th Fr Sa Su  
             1  2  3  
 4  5  6  7  8  9 10  
11 12 13 14 15 16 17  
18 19 20 21 22 23 24  
25 26 27 28 29 30 31

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#7 2020-05-25 18:17:29

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,154

Re: [SOLVED]Default Conky shows wrong Day (date ok)

The calendar displayed depends on how you set up your system.

Check:

 25 May 20 @ 15:11:03 ~
   $ locale
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=
 
 25 May 20 @ 15:11:07 ~
   $ 

Some more info here.

Mine is English Canada - calendars start on Sunday

If you are in a country that a week starts on Monday then ...

Yours:

$ ncal -b
      May 2020        
Mo Tu We Th Fr Sa Su  
             1  2  3  
 4  5  6  7  8  9 10  
11 12 13 14 15 16 17  
18 19 20 21 22 23 24  
25 26 27 28 29 30 31

Mine:

 25 May 20 @ 15:11:07 ~
   $ ncal -b
      May 2020        
Su Mo Tu We Th Fr Sa  
                1  2  
 3  4  5  6  7  8  9  
10 11 12 13 14 15 16  
17 18 19 20 21 22 23  
24 25 26 27 28 29 30  
31                    
 
 25 May 20 @ 15:14:46 ~
   $ 

In both cases 1 May is Friday.  It works properly.

Greek-English.jpg


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#8 2020-05-25 18:58:15

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,154

Re: [SOLVED]Default Conky shows wrong Day (date ok)

Change this:

${goto 28}${color}SU MO ${color0}${time %b %Y}${color} FR SA
${goto 28}${color1}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 28}/g'}${color}${font}${color}

to this:

${goto 28}${color1}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 28}/g'}${color}${font}${color}

or this:

${goto 28}${color1}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 28}/g'}${color}${font}${color}

To look like either of the bottom two:
2020-05-25-155837-S11.jpg
Colouring due to being in a test conky.

Either of the bottom 2 will work without change.

Last edited by Sector11 (2020-05-25 19:01:05)


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#9 2020-05-25 19:49:33

damo
....moderator....
Registered: 2015-08-20
Posts: 6,043

Re: [SOLVED]Default Conky shows wrong Day (date ok)

So the calendar depends on locale? I never noticed that  monkey


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#10 2020-05-25 19:55:26

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,154

Re: [SOLVED]Default Conky shows wrong Day (date ok)

YUP.

We are never to old to learn something.  wink


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

Board footer

Powered by FluxBB