added light script

This commit is contained in:
Tobias Schmidl 2024-11-11 15:45:18 +01:00
parent 90b6fb2b80
commit a7061c3ed9

13
.local/bin/light Executable file
View file

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