You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
261 B

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