flyinghyrax / Elementary

Some Rainmeter skins

Home Page:http://rainmeter.net/cms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uptime skin variant without seconds

flyinghyrax opened this issue · comments

A user asked how to remove the seconds value from the uptime skin. It makes sense that one doesn't really need to know how many seconds one's computer has been running.

Create a variant of the uptime skin that does not display seconds.

This will be more complex than I thought, because the uptime skin actually uses a Lua script to determine what text to display, and it never displays seconds unless the computer has been on for less than an hour anyway.

bff72b6 changed the Lua script and added an option so that seconds can be hidden completely... but that still might not be enough, because it doesn't address this case:
screenshot 1498496762
Here the uptime is over an hour but less than 1:01; ideally we'd like to show either "Uptime 1 Hour" or "Uptime 1 Hour N Seconds" in this case, depending on whether or not the user likes seconds. But I'm unsure if I can cover all the cases while keeping things relatively simple.