Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

Standard rather than Military time

Message
Author
User avatar
Jerry3904
Administrator
Posts: 21859
Joined: Wed Jul 19, 2006 6:13 am

Re: Standard rather than Military time

#11 Post by Jerry3904 »

Is this the conky you are talking about? If yes, it has already been fixed in the next update of the conky package.

BTW: the time formats are listed in the Wiki: https://mxlinux.org/wiki/other/time-formats-in-scripts/
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Jerry3904
Administrator
Posts: 21859
Joined: Wed Jul 19, 2006 6:13 am

Re: Standard rather than Military time

#12 Post by Jerry3904 »

Actually, this should have gone into the 18.2 point release, but the engineer was apparently asleep at the switch. Can people try this revision (by fehlix) to see if it switches automagically?

Code: Select all

background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
#own_window_argb_visual yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 700 150
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

default_shade_color 000000
default_outline_color 828282
alignment top_middle
gap_x 20
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
#override_utf8_locale no

default_color edf1f6
color1 2da83b
color2 2da73b
color3 db303e

own_window_argb_value 0
own_window_argb_visual no
own_window_colour 000000


TEXT
#time
${offset 170}${color}${font Quicksand - U:pixelsize=70}${if_match "pmfix${time %p}" == "pmfix"}${time %H:%M}${else}${time %l:%M}${endif}${font}${font}${voffset -45}${offset 10}${font Roboto-Light - U:pixelsize=35}${time %P}${font}



#date
${voffset 5}${offset 100}${color2}${font Droid:pixelsize=30}${time %A}${font}${goto 275}${voffset -18}${color2}${font Droid:pixelsize=30}  ${time %x}${font}

#sys
${offset 130}${font Roboto-Light:pixelsize=20}${offset 9}${offset 9}${color1}hdd ${color}${offset 9}$color${fs_used_perc /}%${offset 9}${color1}mem ${offset 9}${color}${memperc}%${offset 9}${offset 9}${color1}cpu${offset 9}${color}${cpu}%${font}
Open Featherpad and paste this code into a new file, saving it as ~/.conky/MX-Elementary/MX-Elementary_sys_rev, then select it with Conky Manager.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
fehlix
Developer
Posts: 10275
Joined: Wed Apr 11, 2018 5:09 pm

Re: Standard rather than Military time

#13 Post by fehlix »

Jerry3904 wrote: Fri May 03, 2019 7:08 am Actually, this should have gone into the 18.2 point release,
..Elementary_sys_rev
The only diff I can see between the 18.2 released one and the one you posted is:

Code: Select all

<${if_match "pmfix${time %p}" == "pmfix"}${time %k:%M}${else}${time %l:%M}${endif}

>${if_match "pmfix${time %p}" == "pmfix"}${time %H:%M}${else}${time %l:%M}${endif}
No difference regarding 12h-(am/pm) locale, which means this conky seems not be the issue mentioned by the OP.
But I see a "regression" with the version you posted.
For 24h-locale the conky above uses %H:%M instead of "%k:%M",
which would in 24h-clock display a leading zero for the hour (%H), e.g. "09:12" instead " 9:12".
So suggest to keep the released version, instead.
If the intention with the new version was, that the conky-12/24-hour switch-tool
still works, I would suggest to fix this 12/24-switch tool instead
and replace/switch between %H <-> %I and %k <-> %l and %_H<->%_I, %R <-> %I:%M
otherwise ROW would always have leading zero for one-digit hours.
LANG=C man date | grep -E '%H|%_H|%k|%l|%I|%_I' wrote: %H hour (00..23)
%I hour (01..12)
%k hour, space padded ( 0..23); same as %_H
%l hour, space padded ( 1..12); same as %_I
%R 24-hour hour and minute; same as %H:%M
:puppy:
EDIT: added %R <-> %I:%M to switch-tool proposal ;)
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Jerry3904
Administrator
Posts: 21859
Joined: Wed Jul 19, 2006 6:13 am

Re: Standard rather than Military time

#14 Post by Jerry3904 »

Thanks.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
chrispop99
Global Moderator
Posts: 3169
Joined: Tue Jan 27, 2009 3:07 pm

Re: Standard rather than Military time

#15 Post by chrispop99 »

Jerry3904 wrote: Fri May 03, 2019 6:51 am Is this the conky you are talking about? If yes, it has already been fixed in the next update of the conky package.

BTW: the time formats are listed in the Wiki: https://mxlinux.org/wiki/other/time-formats-in-scripts/
I assumed the panel clock (Orage) as the OP mentions %R.

Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines

User avatar
Jerry3904
Administrator
Posts: 21859
Joined: Wed Jul 19, 2006 6:13 am

Re: Standard rather than Military time

#16 Post by Jerry3904 »

That can appear in a conky as well, thanks.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

nik.gnomic
Posts: 13
Joined: Sun Mar 26, 2017 8:56 pm

Re: Standard rather than Military time

#17 Post by nik.gnomic »


User avatar
fehlix
Developer
Posts: 10275
Joined: Wed Apr 11, 2018 5:09 pm

Re: Standard rather than Military time

#18 Post by fehlix »

nik.gnomic wrote: Sat May 04, 2019 6:01 pm all the codes are listed at:

http://man7.org/linux/man-pages/man3/strftime.3.html
or press [Alt][F2]
type #date
and hit [Enter] to see the codes within the displayed man-page
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “XFCE Desktop Environment”