diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-03-14 18:14:53 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-03-14 18:15:32 +0100 |
| commit | 26dda4dc54920aa5d474535a8a550387526f4efc (patch) | |
| tree | 33b48d2b180dd1486c573eaa3d4b38f728a7176e /bin/set_theme | |
| parent | 1a66d3b241f6f972b35616d475a63fc0f3140732 (diff) | |
| download | dotfiles-26dda4dc54920aa5d474535a8a550387526f4efc.tar.gz dotfiles-26dda4dc54920aa5d474535a8a550387526f4efc.zip | |
[setup] add new scripts target
Diffstat (limited to 'bin/set_theme')
| -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 |
