dotfiles/.local/bin/light
2025-10-18 17:50:25 +02:00

15 lines
383 B
Bash
Executable file

#! /bin/sh
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
exit 1
;;
esac