blob: 3b9345ec72b3e9784e12e2421277ea15ced6344f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
theme=$1
if [[ "$theme" != "dark" ]] && [[ "$theme" != "light" ]]; then
echo "Usage: $0 <light|dark>"; exit 1
fi
# GTK theme
if command -v gsettings > /dev/null; then
gsettings set org.gnome.desktop.interface color-scheme "prefer-${theme}"
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
|