Move executables into local/bin
and fix known bustedness
This commit is contained in:
12
local/bin/redshift-wrapper
Executable file
12
local/bin/redshift-wrapper
Executable 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 "${@}"
|
Reference in New Issue
Block a user