1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
sss d b r rrrr
s d b aa r
s aa d b b a r
sss a n nn dd b b aaa r
s AAA Nn n d d b b a a r
s S A A N n d d b b aaa a r
SSSS AA a N n dddd bb
Sandbar: An x11 status bar for NetBSD and the i3 window manager.
[Image description] The above ASCII art spells out the word "Sandbar", with
each letter made out of itself, in mixed uppercase and lowercase, but as the
text progresses it becomes less and less clear. The lines of the letterforms
become more distorted, the baseline drifts upward and away, and the topology
starts to dissolve.
We, Irenes, made this program for our personal use, but we do hope it may be
useful to others. Please do feel free to send feature requests or contributions.
We welcome feedback of all kinds, and would love to hear from anyone who tries
our program.
Sandbar currently features modules for time, battery, and i3 window manager
mode and workspace list. The hardware access is done using interfaces specific
to NetBSD, and should be both reliable and minimal in overhead.
Significant effort has been put into both performance and appearance. It's
important that the status bar that shows your battery life, not actively drain
the battery by interfering with sleep or anything of that nature. The reason
to have a status bar at all is almost entirely aesthetic, so Sandbar has been
designed around Irenes' personal tastes, and will gain more visual options
as people request features.
In the future, the hope is to include other basic hardware features as well,
including audio volume and screen brightness.
Network status, and the status of remote services, may someday be included if
enough people want it, but are unlikely to ever be high-priority features
because it is Irenes' position that a status bar is supposed to use minimal
resources and avoid doing anything that could involve significant delays.
Computational metrics such as CPU and memory usage will be added at some
point, as these are basics that many pepole are used to watching, but Irenes
advise taking a relaxed attitude to such things and letting the machine take
however long it's going to take. Staring at metrics won't make Firefox any
faster; just let it flow over you and try not to think about it. If your life
experience hasn't made you acutely aware of the ways in which memory pressure
and swapping feel different from compute-bound or disk-bound workloads,
treasure that innocence. Should you inadvertently develop such an awareness,
your experiences with computers will never again be quite free from your
perception of their internal state, and it can become quite stressful. Take a
deep breath and let it go. It's okay to not see everything.
Irenes are not fans of Wayland and support for it is likely to be a long time
coming, but we do have development workflows for when we must use it, and we
may get to it sooner if people express interest. Since the sway window manager
is API-compatible with i3, support for sway would come at the same time as
Wayland support.
There is unlikely ever to be a version number or official release tag for
Sandbar. Just use it from git. It's a nice program, which we've built as well
as we can, but it is not a masterwork and does not require such formality.
Think of it as driftwood art that you're aquiring in a local craft store along
your favorite coastline. Numbers are unimportant in such a context.
We're writing this at a tense political moment for the art of computing,
which we have dedicated our life to, so as much as we don't want to undercut
our friendly attitude, it is necessary to say: If you use generative machine
learning in any way, we will not help with that nor accept the resulting work.
~ ~ ~~~ ~ ~~ ~~ ~~~~
~~ Bibliography ~ ~
~ ~~~ ~ ~~~ ~~
Writing this program in 2026, we aren't sure how we'd have learned the basics
of x11, or found reference material, if we didn't already know a lot of it.
Therefore we feel a particular obligation to credit the sources we did end up
using, knowing that learners ten years from now may have an even harder time
finding any. We hope our bibliography here is useful to y'all, whenever you're
reading.
As someone learning xcb for the first time while already familiar with xlib,
we found freekdesktop's porting guide[1] to be useful. They are also the party
who hosts the most easily searchable copy of the protocol reference[2], but
institutional support for xorg has proven fickle over the decades, so we urge
readers to obtain a local copy instead. Regarding xft, as an entry point we
liked Andrew Chant's overview[3] and there are several deeper resources by
keithp that were helpful[4] or interesting[5]. For Rust topics, the deep
tutorial by quinedot[5] was particularly helpful, especially around the
subtleties of dyn.
[1] https://xcb.freedesktop.org/xlibtoxcbtranslationguide/
[2] https://xorg.freedesktop.org/archive/X11R7.7/doc/xproto/x11protocol.html
[3] http://individual.utoronto.ca/chant/X/
[4] https://www.keithp.com/~keithp/render/Xft.tutorial
[5] https://keithp.com/~keithp/talks/usenix2003/net.pdf
[6] https://quinedot.github.io/rust-learning/
|