#!/bin/sh export RANGE=40 export OFFSET=`expr 255 - $RANGE` eval $(perl -le 'sub c { int(rand() * $ENV{RANGE} + $ENV{OFFSET}) }; sub p { printf("%s=#%02x%02x%02x\n", @_) }; @f = (c, c, c); @b = map($_ - $ENV{OFFSET}, @f); p("FG",@f); p("BG", @b);') [ $# -eq 0 ] && set -- -e "screen -RR" confdir=$HOME mkdir -p $confdir/.config/terminator cat > $confdir/.config/terminator/config << EOF font = Monospace 10 background_color = "$BG" foreground_color = "#FFFFFF" #Another comment. Quotes can be used for scrollbar_position = disabled EOF STY= terminator -n "$@"