I have the Kubuntu panel positioned vertically and that doesn't leave a lot of room for horizontal text strings. The clock is in 12-hour format, and the AM/PM text after the HH:MM makes the text string too long. How can I get 12-hour format, without the AM/PM text?
I don't know how to remove
AM/PM
from Kubuntu's digital clock if the time display is set to "12-Hour" and don't see any such options. If it's possible, it would probably involve knowledge of programmingqt
applications.However, it is possible to use Conky to display 12-Hour times without
AM/PM
. Conky uses the format specified by man strftime. In other words,date +%I:%M
will output06:05
when the current time is18:05
.I used Conky with the conky.conf below to add 12-Hour times without
AM/PM
just below Kubuntu's panel so that both Kubuntu's digital clock displaying 24-Hour time and Conky's window showing 12-Hour time (without AM/PM) are visible:Both 24-Hour and 12-Hour formats visible
To do this, I reduced the length of the vertical panel so that some space is available in the left lower corner of the screen.
I installed conky with
sudo apt install conky-all
and created12h-conky.conf
with the following content in~/.config/conky
.Notes:
update_interval = 1,
should be changed toupdate_interval = 30,
or more once the tweaking (of font, font size, font color, background color and transparency, etc) is done.conky -c $HOME/.config/conky/12h-conky.conf & exit
or it can be added to one's autostart.Another route is to use
latte dock
. It displays an analogue clock (by default) which fits decently in the dock when oriented vertically. If need be, the conky can still be used but I changedbottom_left
tobottom_right
.Latte Dock is very configurable. I have version 0.9.7 because I use the kubuntu-backports ppa in Kubuntu 19.10: