i3status-rust icon indicating copy to clipboard operation
i3status-rust copied to clipboard

formatter: Adding support for seconds/minutes/hours

Open ammgws opened this issue 3 years ago • 2 comments

Adding support for seconds/minutes/hours

_Originally posted by @SebTM in https://github.com/greshake/i3status-rust/issues/1254

ammgws avatar Nov 06 '21 09:11 ammgws

You can mod by yourself

littlesum avatar May 22 '22 08:05 littlesum

Are you talking about this?

There is already a "seconds" unit, so we can add units like "hours", "days" etc. But to achieve formatting like "01:12" (I guess) we will have to also add "special" units like "time" and "date_time" or something like that.

For example, if placeholder var has a value of 1 hour 25 minutes, then

Formatting string Result
"{var*h}" 1.42h
"{var*m}" 85m
"{var*s}" 5100s
"{var*time}" 01:25

Originally posted by @MaxVerevkin in https://github.com/greshake/i3status-rust/issues/1254#issuecomment-860555516

ammgws avatar May 22 '22 09:05 ammgws