summaryrefslogtreecommitdiff
path: root/public/projects/piss_daemon
diff options
context:
space:
mode:
authorSilas Bartha <silas@soaos.dev>2025-05-03 03:53:42 -0400
committerSilas Bartha <silas@soaos.dev>2025-05-03 03:53:42 -0400
commit22592e96a75bd617fe6a9aae146b957695532e7c (patch)
tree5fb31095c224e056471c9f8bf7dd7b46308ffdbd /public/projects/piss_daemon
parentecec6d23de95423b675bc2960ccd4c3950bb4f5f (diff)
Added piss daemon page
Diffstat (limited to 'public/projects/piss_daemon')
-rw-r--r--public/projects/piss_daemon/index.html39
-rw-r--r--public/projects/piss_daemon/statusbar.pngbin0 -> 4546 bytes
2 files changed, 39 insertions, 0 deletions
diff --git a/public/projects/piss_daemon/index.html b/public/projects/piss_daemon/index.html
new file mode 100644
index 0000000..47f6d63
--- /dev/null
+++ b/public/projects/piss_daemon/index.html
@@ -0,0 +1,39 @@
+<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>
+ <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>
+</body>
+
+</html> \ No newline at end of file
diff --git a/public/projects/piss_daemon/statusbar.png b/public/projects/piss_daemon/statusbar.png
new file mode 100644
index 0000000..b98e021
--- /dev/null
+++ b/public/projects/piss_daemon/statusbar.png
Binary files differ