You are not logged in.
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
I think you may have found a bug
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
Offline
Many thanks solved
Offline
Many thanks solved
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
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
Offline
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.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
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
Offline
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.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
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:
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)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
So the calendar depends on locale? I never noticed that 8o
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
Offline
YUP.
We are never to old to learn something.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline