aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/set_theme8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/set_theme b/bin/set_theme
index 3b9345e..a7c5f75 100755
--- a/bin/set_theme
+++ b/bin/set_theme
@@ -16,3 +16,11 @@ 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
+
+FOOT_THEME_PATH=${XDG_CONFIG_HOME:-~/.config}/foot
+printf 'initial-color-theme=%s\n' "$theme" > "$FOOT_THEME_PATH"/initial-color-theme.ini
+if [[ "$theme" = "dark" ]]; then
+ pkill -USR1 foot
+else
+ pkill -USR2 foot
+fi