summaryrefslogtreecommitdiff
path: root/content/projects/piss_daemon/index.md
blob: c409332b0ef039df2ab6a15f752bbf34414e983f (plain)
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
+++
title = "piss daemon"
[taxonomies]
categories = ["utility"]
languages = ["rust"]
[extra]
finished = "december 2024"
git = ["piss-daemon"]
+++
this is a dbus daemon (`pissd`) and client (`piss-level`) that monitor the international space station's urine tank level

i have it integrated into my status bar (X version):

![](./statusbar.png)

```bash
#...

function piss {
	PISS_LEVEL="$(piss-level)";
	if [ -n "$PISS_LEVEL" ]; then
		echo "  ${PISS_LEVEL}%";
	fi;
}

#...

while true; do
    xsetroot -name "$(piss)$(batt)$(datetime)";
	sleep 1;
done;
```

i made this pretty much entirely so that i could call a program "piss daemon"