13 lines
261 B
Bash
Executable File
13 lines
261 B
Bash
Executable File
#!/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 "${@}"
|