#!/bin/sh
+set -eu
-if [ `date +%k` -ge 20 ] || [ `date +%k` -lt 5 ]; then
- ARGS="-bg black -fg lightgray"
+if [ "${1:-}" = "night" ]; then
+ shift
+ night=1
+elif [ "${1:-}" = "day" ]; then
+ night=
+elif [ `date +%k` -ge 20 ] || [ `date +%k` -lt 5 ]; then
+ night=1
+fi
+
+if [ -n "${night:-}" ]; then
+ ARGS="-bg black -fg lightgray -palette #000000,#aa0000,#00aa00,#aaaa00,#6060f0,#aa00aa,#00aaaa,#aaaaaa,#545454,#ff5454,#54ff54,#ffff54,#5454ff,#ff54ff,#54ffff,#ffffff"
else
- ARGS="-bg white -fg black"
+ ARGS="-bg white -fg black -palette #000000,#aa0000,#00aa00,#aa5400,#3030cc,#aa00aa,#00aaaa,#aaaaaa,#545454,#ff5454,#54ff54,#ffff54,#5454ff,#ff54ff,#54ffff,#ffffff"
fi
simple-term -fn "monospace 9" $ARGS "$@"