How to set the order of elements in system tray of KDE panel?

Which part of… :point_down:

… is it that you do not understand? :face_with_raised_eyebrow:

My LC_TIME is ru_RU.UTF-8

So why can’t I put date in front of a time?

I don’t know. It used to be possible to do this, but they changed the settings somewhere along the line, and normally the date should be in front of the time.

One thing you can try is right-click the panel and choose “Enter Edit Mode”, and then “Show Alternatives”. It used to be possible to substitute the clock for the event calendar, which used to allow — at least, again in the past — a custom format.

Also, in my clock settings, I have the date set to “long format”. Maybe that makes a difference?

Another option would be to install the Event Calendar widget and use that instead of the default one. Here’s mine:

https://i.imgur.com/ZQXjX7i.png

2 Likes

… Which is what I said already… :point_down:

:stuck_out_tongue:

It either way seems to depend on the locale settings. :man_shrugging:

It is quite possible to create a customized locale file.

The locale layout is defined in relevant locale file.

The locale file can import other files - so in your case you could create a copy with a slightly different name - then use that - do not modify the system file - it will be overwritten without any warning.

I have no experience with this - read the above linked topic - read the article Locale - ArchWiki

Copy the file to your home

cp /usr/share/i18n/locales/ru_RU ~/my_RU

Then modify - possibly use the en_DK as template or guidance, save the file and copy back

sudo cp ~/my_RU /usr/share/i18n/locales

Make the necessary changes to /etc/locale.gen (run locale-gen) , locale.conf and ~/.config/plasma-localerc accordingly.

There is absolutely no guarantee that you will be able to achieve the desired result - but - boy - you are in for some learning …

1 Like

The Plasma 5 HTML Clock should do the job. It can be added to panel & desktop. Some knowledge of HTML may be required.

1 Like

Perhaps this helps:

:man_shrugging:

1 Like

Not to be a party pooper, but that article is from 2021. :wink:

Plasma no longer randomly orders the icons in the system tray, and hasn’t been doing that anymore for about a year, if not longer. The order is now alphabetic. :slight_smile:

1 Like

Noticed too late, and yeah. But I DID specify that I don’t know… :man_shrugging:

1 Like

You can change the Date and Time format by editing the file

/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml
1 Like

Take a look at ‘Event Calendar’ widget - I use that for my panel clock, and you can pretty much edit that any way you like (including specifying colour).

You can define 2 lines display…

‘‘ddd dd MMM’’ for the date, I only specified ONE line, I entered two widgets because I use the date to access my schedule. The other widget just displays the time HH:mm with Atkinson Hyperlegible font. You can swap them if you like :wink:
2023-10-27 20:13:36

However, I tend to have that panel hidden accessed only for calendar entry/scheduling. The best onscreen time/date is by far via a couple of conkies:
2023-10-27 20:19:04

The date stays on the desktop, but the time stays on top so I can see it when I watch TV on Plex maximised (won’t work fullscreen, so I do maximise and no border).

Date

conky.config = {
– Conky settings
background = true,
update_interval = 300,
double_buffer = true,
no_buffers = true,

– Window specifications
gap_x = 240,
gap_y = 55,
alignment = ‘top_right’,
own_window = true,
own_window_type = ‘dock’,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 50,
own_window_hints = ‘undecorated,below,sticky,skip_taskbar,skip_pager’,
own_window_class = ‘conky’,

– Text
use_xft = true,
xftalpha = 0.1,
font = ‘Arial Rounded MT bold :size=14’,

default_color = '#646464',

};

conky.text = [[${time %A %d %B %Y}
${font :size=10}${utime %H:%M %Z} ${goto 105}${tztime America/Chicago %H:%M %Z} US
]];

Time

conky.config = {
– Conky settings
background = true,
update_interval = 5,
double_buffer = true,
no_buffers = true,

– Window specifications
gap_x = -670,
gap_y = 5,
alignment = ‘top_middle’,
own_window = true,
own_window_type = ‘dock’,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 50,
own_window_hints = ‘undecorated,above,sticky,skip_taskbar,skip_pager’,
own_window_class = ‘conky’,

– Text
use_xft = true,
xftalpha = 0.1,
font = ‘Arial Rounded MT bold :size=24’,

default_color = '#646464',

};

conky.text = [[${time %H:%M}]];

3 Likes

If having the time above is acceptable, might I introduce you to this simple setting:
image

1 Like

I have only two checkboxes: “show date” and “show seconds”

1 Like

Try changing the time format by right clicking: Set time format > Time > modify > C. (you might have to logout and then in again) and see if that changes anything.

(you might have to add C.UTF-8 to your locales and do a locale-gen to get C to show up, I am actually not sure)

1 Like

Thanks. Add that to my bar tab. :wink:

1 Like

I have only two checkboxes: “show date”, “show seconds”

Make sure to upgrade to latest Plasma 5.27.9, that option to force date below time was added since 5.24.

Heres an open bug for systray reordering
https://bugs.kde.org/show_bug.cgi?id=384782

This comment from Nate Graham seems to cover it adequately:

Unfortunately the code is sufficiently fragile here that we really can't touch it without a total rewrite at some point in the future, and it doesn't help anyone to keep open tickets that we can't resolve.

If you can submit a patch that implements this in a scalable and sustainable way, please feel free though!

That was in 2017; maybe it's changed by now.

I like the latest one from July 2023 (@pallaswept)

[also note this bug has been open since 2017 :sweat_smile: ]

1 Like