]> piware.de Git - bin.git/commitdiff
Add daytime-term
authorMartin Pitt <martin@piware.de>
Mon, 8 Jul 2019 19:53:33 +0000 (21:53 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 8 Jul 2019 19:53:33 +0000 (21:53 +0200)
Wrapper that runs simple-term in day or night color mode depending on
time of day.

daytime-term [new file with mode: 0755]

diff --git a/daytime-term b/daytime-term
new file mode 100755 (executable)
index 0000000..0107ec5
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ `date +%k` -ge 21 ] || [ `date +%k` -lt 5 ]; then
+    ARGS="-bg black -fg lightgray"
+else
+    ARGS="-bg white -fg black"
+fi
+
+simple-term -fn "monospace 9" $ARGS $@