dotfiles/redshift-wrapper

13 lines
255 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o pipefail
main() {
: "${FALLBACK_COORDS:=40.4325:-79.863}"
local coords
coords="$(~/.get-coords 2>/dev/null || echo "${FALLBACK_COORDS}")"
exec "${REDSHIFT_EXE:-redshift}" -l "${coords}" -v
}
main "${@}"