Sample Header Ad - 728x90

Format the output of "read_file uptime" in i3status

3 votes
2 answers
788 views
I'm trying to display my system uptime with i3status. This is what I have in my i3status.conf file: read_file uptime { format = "%title: %content" path = "/proc/uptime" } However the output is in seconds, as can be seen in this screenshot, which is obviously not ideal: enter image description here Is there a way I am able to format this, to display for example in the format of: DD:HH:MM:SS
Asked by Zsargul (101 rep)
Dec 20, 2021, 03:19 PM
Last activity: May 20, 2023, 06:15 PM