light: allow for local-light

This commit is contained in:
Tobias Schmidl 2025-10-18 17:48:17 +02:00
parent c68d4fde42
commit 3323093db4

View file

@ -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