Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/otacke/timetray
A tiny Java program that shows the current calendar week in a system tray
https://github.com/otacke/timetray
Last synced: about 2 months ago
JSON representation
A tiny Java program that shows the current calendar week in a system tray
- Host: GitHub
- URL: https://github.com/otacke/timetray
- Owner: otacke
- License: wtfpl
- Created: 2016-01-23T11:43:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-02T17:31:32.000Z (over 7 years ago)
- Last Synced: 2024-07-02T14:47:16.429Z (5 months ago)
- Language: Java
- Homepage:
- Size: 121 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
- awesome - timetray - A tiny Java program that shows the current calendar week in a system tray (Java)
README
# TimeTray
TimeTray displays the current calender week in a system tray -- a feature that Windows still lacks in 2016.## Support me at patreon!
If you like what I do, please consider to become my supporter at patreon: https://www.patreon.com/otacke## Install/Usage
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](http://www.java.com/en/download/ "Oracle")), and put _TimeTray.jar_ into your autostart folder, crontab, whatever...
## Screenshot
![timetray](https://github.com/otacke/timetray/blob/master/timetray.png "timetray")## Additional Information
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 customsSo 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...
1. (0-255) red value of the TrayIcon's background color
2. (0-255) green value of the TrayIcon's background color
3. (0-255) blue value of the TrayIcon's background color
4. (0-255) alpha value of the TrayIcon's background color
5. (0-255) red value of the font color
6. (0-255) green value of the font color
7. (0-255) blue value of the font color
8. (0-255) alpha value of the font color
9. (-1, 0, 1) time offset
10. name of the font family
11. number representing the font style (I didn't look up which number means what, but 0 is plain)
12. simple date format pattern representing the format for the TrayIcons toolstip textThe 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!_
## License
TimeTray is licensed under the [DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE](http://www.wtfpl.net).