<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hbspbar/status/04-date.go, branch master</title>
<subtitle>custom status bar for bspwm
</subtitle>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/hbspbar/'/>
<entry>
<title>Alter sleep behaviour for date()</title>
<updated>2026-06-03T15:33:56+00:00</updated>
<author>
<name>Hayden Hamilton</name>
<email>hayden@hhvn.uk</email>
</author>
<published>2026-06-03T15:33:56+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/hbspbar/commit/?id=eca2774bae841168afff8a435b5f8341cbdd6eb7'/>
<id>eca2774bae841168afff8a435b5f8341cbdd6eb7</id>
<content type='text'>
// Previously this status would sleep all the way until the next day.
// This worked fine until the device entered sleep/hibernation
//
// Therefore a limit was added. Not the ideal solution,
// as if the device is woken within config.MaxSleep,
// then the date will not update until some extra time has elapsed.
//
// TODO: a better solution
if (until &gt; config.MaxSleep) {
	until = config.MaxSleep
}

time.Sleep(until)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
// Previously this status would sleep all the way until the next day.
// This worked fine until the device entered sleep/hibernation
//
// Therefore a limit was added. Not the ideal solution,
// as if the device is woken within config.MaxSleep,
// then the date will not update until some extra time has elapsed.
//
// TODO: a better solution
if (until &gt; config.MaxSleep) {
	until = config.MaxSleep
}

time.Sleep(until)
</pre>
</div>
</content>
</entry>
<entry>
<title>date+time status blocks have existed for a long time, but forgot to commit</title>
<updated>2026-06-03T15:25:12+00:00</updated>
<author>
<name>Hayden Hamilton</name>
<email>hayden@hhvn.uk</email>
</author>
<published>2026-06-03T15:25:12+00:00</published>
<link rel='alternate' type='text/html' href='http://src.hhvn.uk/hbspbar/commit/?id=25cd38bb49d22ffa42008a83ae86fba405fd2e14'/>
<id>25cd38bb49d22ffa42008a83ae86fba405fd2e14</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
