diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/set_theme | 13 |
1 files changed, 13 insertions, 0 deletions
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 <light|dark>"; 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 |
