aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/set_theme13
-rwxr-xr-xsetup.py3
2 files changed, 16 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
diff --git a/setup.py b/setup.py
index 4edf536..802e992 100755
--- a/setup.py
+++ b/setup.py
@@ -125,6 +125,9 @@ targets = {
("config/qutebrowser/dark.py", config_dir + "/qutebrowser/dark.py"),
("config/qutebrowser/light.py", config_dir + "/qutebrowser/light.py"),
("config/qutebrowser/autoconfig.yml", config_dir + "/qutebrowser/autoconfig.yml")],
+ "scripts":
+ [("bin/alert", local_bin_dir + "/alert"),
+ ("bin/set_theme", local_bin_dir + "/set_theme")],
"ssh":
[("ssh/config.gpg", home_dir + "/.ssh/config"),
("ssh/ssh-agent.service", config_dir + "/systemd/user/ssh-agent.service")],