summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-19 14:00:19 -0500
committerLibravatar Silas Bartha <silas@exvacuum.dev>2025-02-19 14:00:19 -0500
commitec832f2738fa78e3e92f2dbe98e38f9c5872d424 (patch)
treed51149fe0e53ad7090a52c86af9026bb28578218
parentf8b92869b54fd6803a12b6464e8373f23074f5ab (diff)
add piss daemon script usage
-rw-r--r--content/projects/piss_daemon/index.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/content/projects/piss_daemon/index.md b/content/projects/piss_daemon/index.md
index ad2c46b..f4a292d 100644
--- a/content/projects/piss_daemon/index.md
+++ b/content/projects/piss_daemon/index.md
@@ -9,6 +9,26 @@ 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
+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"