From: Martin Pitt Date: Mon, 8 Jul 2019 19:53:33 +0000 (+0200) Subject: Add daytime-term X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=31a3a2342bb146242e0d63289f60b4e8bf5515a8;p=bin.git Add daytime-term Wrapper that runs simple-term in day or night color mode depending on time of day. --- diff --git a/daytime-term b/daytime-term new file mode 100755 index 0000000..0107ec5 --- /dev/null +++ b/daytime-term @@ -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 $@