TimeTray displays the current calender week in a system tray -- a feature that Windows still lacks in 2016.
If you like what I do, please consider to become my supporter at patreon: https://www.patreon.com/otacke
If you don't use the "Download ZIP" option but only want to download TimeTray.jar, don't right-click it in the list (!) but left-click on it and get the "RAW" version!
Just make sure that you're running a Java Runtime Environment (e. g. the JRE from Oracle), and put TimeTray.jar into your autostart folder, crontab, whatever...
TimeTray is a very simple program that I originally hacked on one day for a former colleague of mine many years ago. It displays the current calender week in a system tray -- a feature that Windows still lacks in 2016. Since TimeTray is written in Java, it can run on other operating systems as well, e.g. Linux or MacOS.
TimeTray is totally working -- I hope ;-) I cannot test it on Windows because I don't use Windows. So, if you detect a problem, just tell me, please. Anyway, allowing to set (and save) some parameters would be useful:
- the tray icon's background color
- the tray icon's font color
- the tray icon's font
- an optional offset of -1 or +1 if you're running a locale version of your OS that doesn't match your local calendar customs
So far, there is a rudimental settings window that allows you to change the offset that is saved automatically to a plain text file called .timetray in your home directory. You can edit the file with a text editor line by line to change other values. The lines mean...
- (0-255) red value of the TrayIcon's background color
- (0-255) green value of the TrayIcon's background color
- (0-255) blue value of the TrayIcon's background color
- (0-255) alpha value of the TrayIcon's background color
- (0-255) red value of the font color
- (0-255) green value of the font color
- (0-255) blue value of the font color
- (0-255) alpha value of the font color
- (-1, 0, 1) time offset
- name of the font family
- number representing the font style (I didn't look up which number means what, but 0 is plain)
- simple date format pattern representing the format for the TrayIcons toolstip text
The load and save routines are only rudimentary, so you might crash TimeTray if you set illegal values. In doubt, delete .timetray in your home directory. TimeTray will then reset the file if neccessary. The ugly routines should probably be improved...
When will all this be done? When it's done. But to be honest: I don't care much about this piece of code that's probably mainly used for Windows. Sorry! But you may use the source, Luke!
TimeTray is licensed under the DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE.