Up Time

UUID: uptime@vatanuki.kun
Last edited:
1 month ago 2019-10-19, 17:00 UTC
Last commit: [7c2233d6] New Italian translations (#2634)

A simple applet that displays uptime.

README

Close

Uptime

Uptime is an applet that shows you how long it's been since last reboot.

The code for this applet can be found under uptime@vatanuki.kun here : cinnamon-spices-applets

Usage

  • You can choose how to display the time in three different ways. Two predefined ways, and a third way where you define exactly how to present the time using :
    • %y for number of years
    • %d for number of days
    • %h for number of hours
    • %m for number of minutes
    • %H for number of hours with leading zero (if less than ten)
    • %M for number of minutes with leading zero (if less than ten)
  • You can add a volentary prefix, for example : Uptime : 4 days and 3 hours
  • You can choose a minimal mode, where only the icon will be shown in your panel, and the time will be presented (as choosen above) in a tooltip.
  • You can show or hide the icon (in non-minimal mode)
  • You can style the text (in non-minimal mode) with CSS

Examples

screenshot

screenshot

screenshot

screenshot

screenshot

screenshot

Contributing

  • Original author : vatanuki.kun
  • Author : Hultan

Log In To Comment!

8 Comments

Dragoş
Dragoş-3 months ago
Unfortunately your latest hide-icon change broke the behavior of 'Hideable applets' (find it here: https://cinnamon-spices.linuxmint.com/applets/view/293 ) Your icon in the systray doesn't hide anymore when right-clicking on its representative icon in Hideable applet's panel. Please review the code changes and fix it properly, in order to restore that applet's behavior. Thank you.
SoftTeam AB
SoftTeam AB-3 months ago
I have tried 'Hideable applets' now together with 'uptime' and it seem to work for fine me. Note though that I have never used 'Hideable applets' before, so therefor I can have misunderstood something. I would appreciate if you could open an issue on github (https://github.com/linuxmint/cinnamon-spices-applets/issues) and explain a little bit more in depth what the problem is and maybe provide an image or two also? Also it might help with a section of your ~/xsession-errors to see if an error occurs there. Thanks...
SoftTeam AB
SoftTeam AB-3 months ago
I will look into that over the weekend. I don't use 'Hideable applets' so I have not tested with that, but I will see what I can do...
Kholya
Kholya-3 months ago
Would prefer an option to not display the icon at all. Is this possible? Or can you indicate where the icon is stored so I can remove it manually?
SoftTeam AB
SoftTeam AB-3 months ago
@kholya I have implemented a Hide icon-setting now, give a few days or weeks and it should be available to you. Or if you are in a hurry, check out #2575.
SoftTeam AB
SoftTeam AB-8 months ago
Here are a few ideas of how to improve the applet: 1. Choose font/font size 2. Choose an icon and whether it should be shown before or after the text 2. Choose how to up time should be presented, for example "{%d} days and {%h} hours"
SoftTeam AB
SoftTeam AB-4 months ago
I have implemented most of the above in the applet now. Plus a minimal option that only shows the icon, and the uptime in the tooltip.
Dimytri Komanatov
Dimytri Komanatov-2 years ago
Simple, functional and clean. Perfectly accomplishes exactly what it promises without trying to be too fancy. Exactly what I was hoping for. Thank you!