From a7061c3ed93a3f0f6896dc5d36d800b16ef0f6d5 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Mon, 11 Nov 2024 15:45:18 +0100 Subject: [PATCH] added light script --- .local/bin/light | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .local/bin/light diff --git a/.local/bin/light b/.local/bin/light new file mode 100755 index 0000000..b017675 --- /dev/null +++ b/.local/bin/light @@ -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