Timelet

UUID: timelet@linuxedo.com
Last edited:
2 months ago 2023-03-31, 04:27
Last commit: [32554c07] Adds new Italian translations to various desklets

A themeable desklet that shows the time

README

Close

Timelet

A themeable desklet inspired by Conky to display time on your desktop.

Themes

  • Digital
  • Flair
  • Gotham
  • Jelly
  • Metro

Fonts

Install the fonts required by each theme for the best result.

Development

Refer Timelet: A Themeable Desklet to Show Time for details on how to write a theme for Timelet.

Log In To Comment!

9 Comments

angelotux
angelotux-1 day ago
is it possible to have the same clock widget mx linux?
Eckhard
Eckhard-1 month ago
Need a 24h mode so badly!
Eckhard
Eckhard-1 month ago
Ok I was able to figure it out myself: Go to `~/.local/share/cinnamon/desklets/timelet@linuxedo.com/themes` and open the theme you are using with a text editor, i.e. `vim gotham.js` Find line 60, and remove the method "to12hours", so your line looks like `let time = this.to2Digit(date.getHours()) + ":" + this.to2Digit(date.getMinutes());` Save and exit, now all that is left is to restart cinnamon, the easiest by right-clicking the taskbar --> Troubleshoot --> Restart Cinnamon. Now the clock displays 24 hour mode ✓
Minessota Klei
Minessota Klei-4 months ago
Very good desklets, I loved it! Please, could you put in the settings the possibility to choose the default 24h or 12h for each theme!
lavendersachet
lavendersachet-1 month ago
+1 for this! Or to match system setting. Love Timelet ! Thanks for this applet
Eckhard
Eckhard-1 month ago
I found a way, check out my comment above!
urmst
urmst-5 months ago
Also to add, I have the correct fonts installed. I also reloaded Cinnamon and got the below error. Many thanks for your help. error t=2022-12-30T12:53:03Z [ReferenceError: date is not defined]: Failed to evaluate 'main' function on desklet: timelet@linuxedo.com/5 error t=2022-12-30T12:53:03Z [timelet@linuxedo.com]: Desklet timelet@linuxedo.com: Could not create desklet object. [timelet@linuxedo.com]: Error importing desklet.js from timelet@linuxedo.com warning t=2022-12-30T12:53:04Z Invalid or null source id used when attempting to run Mainloop.source_remove() overrideDumpStack/global.dump_gjs_stack@/usr/share/cinnamon/js/ui/overrides.js:24:42 overrideMainloop/Mainloop.source_remove@/usr/share/cinnamon/js/ui/overrides.js:163:20 on_desklet_removed@/home/user/.local/share/cinnamon/desklets/timelet@linuxedo.com/desklet.js:80:18 destroy/<.onComplete<@/usr/share/cinnamon/js/ui/desklet.js:133:37 _addHandler/params[name]@/usr/share/cinnamon/js/ui/tweener.js:256:24 _callOnFunction@resource:///org/gnome/gjs/modules/script/tweener/tweener.js:190:16 _updateTweenByIndex@resource:///org/gnome/gjs/modules/script/tweener/tweener.js:320:24 _updateTweens@resource:///org/gnome/gjs/modules/script/tweener/tweener.js:333:18 _onEnterFrame@resource:///org/gnome/gjs/modules/script/tweener/tweener.js:348:10 _emit@resource:///org/gnome/gjs/modules/core/_signals.js:114:47 _onNewFrame@/usr/share/cinnamon/js/ui/tweener.js:413:14 _init/<@/usr/share/cinnamon/js/ui/tweener.js:389:22
Gobinath
Gobinath-4 months ago
Hi, Can you try uninstalling the desklet, run the following command and then try installing it? rm -rf ~/.cinnamon/configs/timelet@linuxedo.com/
urmst
urmst-5 months ago
Great desklet, however on the latest 21.1 Cinnamon edition it crashes when selecting the Metro theme. It was fine for a while but now it doesn't start at boot, and you get the 'Cinnamon has started successfully but one of your desklets has crashed' message. I tried re-adding the desklet and it will work but the Metro theme does not. Spotted the below in Looking Glass: error t=2022-12-30T12:35:25Z [ReferenceError: date is not defined]: Failed to evaluate 'main' function on desklet: timelet@linuxedo.com/0 error t=2022-12-30T12:35:25Z [timelet@linuxedo.com]: Desklet timelet@linuxedo.com: Could not create desklet object. [timelet@linuxedo.com]: Error importing desklet.js from timelet@linuxedo.com