15 lines
383 B
Bash
Executable file
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
|