From 26dda4dc54920aa5d474535a8a550387526f4efc Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 14 Mar 2024 18:14:53 +0100 Subject: [setup] add new scripts target --- bin/set_theme | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/set_theme (limited to 'bin') diff --git a/bin/set_theme b/bin/set_theme new file mode 100755 index 0000000..aa42f1a --- /dev/null +++ b/bin/set_theme @@ -0,0 +1,13 @@ +#!/bin/bash + +theme=$1 +if [[ "$theme" != "dark" ]] && [[ "$theme" != "light" ]]; then + echo "Usage: $0 "; exit 1 +fi + +VIS_THEME_PATH=${XDG_CONFIG_HOME:-~/.config}/vis/themes +ln -sf solarized-"$theme".lua "${VIS_THEME_PATH}"/theme.lua + +ALACRITTY_THEME_PATH=${XDG_CONFIG_HOME:-~/.config}/alacritty +ln -sf "$theme".toml "${ALACRITTY_THEME_PATH}"/theme.toml +touch "${ALACRITTY_THEME_PATH}"/alacritty.toml -- cgit v1.2.3