From 31a3a2342bb146242e0d63289f60b4e8bf5515a8 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 8 Jul 2019 21:53:33 +0200 Subject: [PATCH] Add daytime-term Wrapper that runs simple-term in day or night color mode depending on time of day. --- daytime-term | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 daytime-term 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 $@ -- 2.39.5