diff --git a/.local/bin/light b/.local/bin/light index b017675..ac77772 100755 --- a/.local/bin/light +++ b/.local/bin/light @@ -2,12 +2,14 @@ case "$1" in on) echo 'VIM_COLORSCHEME=light' | tee "$HOME/.config/environment.d/light.conf" + command -v light-local >/dev/null && exec light-local on ;; off) echo 'VIM_COLORSCHEME=dark' | tee "$HOME/.config/environment.d/light.conf" + command -v light-local >/dev/null && exec light-local off ;; *) - echo "Usage: $(basename $0) on|off" >&2 + echo "Usage: $(basename "$0") on|off" >&2 exit 1 ;; esac