light: allow for local-light
This commit is contained in:
parent
c68d4fde42
commit
3323093db4
1 changed files with 3 additions and 1 deletions
|
|
@ -2,12 +2,14 @@
|
||||||
case "$1" in
|
case "$1" in
|
||||||
on)
|
on)
|
||||||
echo 'VIM_COLORSCHEME=light' | tee "$HOME/.config/environment.d/light.conf"
|
echo 'VIM_COLORSCHEME=light' | tee "$HOME/.config/environment.d/light.conf"
|
||||||
|
command -v light-local >/dev/null && exec light-local on
|
||||||
;;
|
;;
|
||||||
off)
|
off)
|
||||||
echo 'VIM_COLORSCHEME=dark' | tee "$HOME/.config/environment.d/light.conf"
|
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
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue