Remove leading zero from desktop clock
Posted: Mon 30 Sep 2013, 13:52
To remove the leading zero from single digit hours or dates on the desktop clock, just add a dash/minus before the desired digit in this line in .jwmrc-tray (hidden in the root directory). Like this:
Restart JWM to see the change.
(That's if you use JWM, but it should be similar in other window managers. Adding the dash also works for times and dates in other places, such as in the Spacefm file manager, where you can specify the format for date and time of file modifications)
So instead of 08:51AM, the clock will now show this:
Code: Select all
<Clock format="%-I:%M%p"></Clock>
(That's if you use JWM, but it should be similar in other window managers. Adding the dash also works for times and dates in other places, such as in the Spacefm file manager, where you can specify the format for date and time of file modifications)
So instead of 08:51AM, the clock will now show this: