Move executables into local/bin

and fix known bustedness
This commit is contained in:
2020-03-26 09:46:11 -04:00
parent caea8cab11
commit a2cc7a788a
11 changed files with 15 additions and 9 deletions

12
local/bin/redshift-wrapper Executable file
View File

@@ -0,0 +1,12 @@
#!/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 "${@}"