summaryrefslogtreecommitdiff
path: root/public/projects/piss_daemon/index.html
blob: 5cb948133fa90fab72b55edb7b55fce92797e750 (plain) (blame)
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
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Piss Daemon - soaos</title>
</head>

<body>
	<a href="/">Go Home</a>
	<a href="..">Go Back</a>
	<h1>Piss Daemon</h1>
	<h2>About</h2>
	<p>This is a D-Bus daemon (<code>pissd</code>) and client (<code>piss-level</code>) that monitor the international
		space station's urine tank level.</p>
	<p>I have it integrated into my status bar (X version):</p>
	<img src="statusbar.png"
		alt="A screenshot of an X11 statusbar showing the piss daemon piss level next to a toilet icon.">
	<pre>
	#...

	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;
	</pre>
	<p>I made this pretty much entirely so that I could call a program "piss daemon".</p>
	<h2>External Links</h2>
	<ul>
		<li><a href="https://git.soaos.dev/soaos/piss-daemon" target="_blank">git repo</a></li>
	</ul>
</body>

</html>