Skip to content

Commit

Permalink
[setup] add new scripts target
Browse files Browse the repository at this point in the history
  • Loading branch information
fischerling committed Mar 14, 2024
1 parent 1a66d3b commit 26dda4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/set_theme
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def dotfile_loc_helper(quiet):
("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")],
Expand Down

0 comments on commit 26dda4d

Please sign in to comment.