diff --git a/.local/bin/light b/.local/bin/light new file mode 100755 index 0000000..b017675 --- /dev/null +++ b/.local/bin/light @@ -0,0 +1,13 @@ +#! /bin/sh +case "$1" in + on) + echo 'VIM_COLORSCHEME=light' | tee "$HOME/.config/environment.d/light.conf" + ;; + off) + echo 'VIM_COLORSCHEME=dark' | tee "$HOME/.config/environment.d/light.conf" + ;; + *) + echo "Usage: $(basename $0) on|off" >&2 + exit 1 + ;; +esac