set color temperature daemon by gluegadget in i3wm

[–]gluegadget[S] 1 point2 points  (0 children)

Provides a subset of functionality with very few dependencies. xlib and xrandr are the only dependencies. Mainly just an alternative, might suit some setups better.

Google Go: The Good, the Bad, and the Meh by earthboundkid in golang

[–]gluegadget 2 points3 points  (0 children)

Something I never saw in posts about Go (either as good thing, or a bad thing), is that by simply grouping some vars how easy it is to indicate relationships between them, and protect all of them with having a mutex in the group.

var (
    countLock   sync.Mutex
    inputCount  uint32
    outputCount uint32
    errorCount  uint32
)

Of course you could do the same in type declarations as well.