(bash) update rc file
This commit is contained in:
parent
56af3ebb29
commit
69e130f1dc
1 changed files with 7 additions and 2 deletions
|
|
@ -218,13 +218,18 @@ unset color_prompt
|
||||||
source ~/.config/kitty/setup.sh
|
source ~/.config/kitty/setup.sh
|
||||||
# function to toggle kitty terminal theme
|
# function to toggle kitty terminal theme
|
||||||
toggle_theme() {
|
toggle_theme() {
|
||||||
|
# theme_link="$HOME/.config/alacritty/theme.toml"
|
||||||
|
# rm -r "$theme_link"
|
||||||
if [ "$TERM_COLOR_MODE" == "light" ]; then
|
if [ "$TERM_COLOR_MODE" == "light" ]; then
|
||||||
export TERM_COLOR_MODE=dark
|
export TERM_COLOR_MODE=dark
|
||||||
kitten @ set-colors --all "$HOME/.config/kitty/dark.conf"
|
# kitten @ set-colors --all "$HOME/.config/kitty/dark.conf"
|
||||||
|
# theme="catppuccin_latte"
|
||||||
else
|
else
|
||||||
export TERM_COLOR_MODE=light
|
export TERM_COLOR_MODE=light
|
||||||
kitten @ set-colors --all "$HOME/.config/kitty/light.conf"
|
# theme="catppuccin_mocha"
|
||||||
fi
|
fi
|
||||||
|
kitten @ set-colors --all "$HOME/.config/kitty/$TERM_COLOR_MODE.conf"
|
||||||
|
# ln "$HOME/.config/alacritty/themes/themes/$theme.toml" "$theme_link"
|
||||||
}
|
}
|
||||||
|
|
||||||
type -p curl >/dev/null || echo -e "$WARNING curl is not installed"
|
type -p curl >/dev/null || echo -e "$WARNING curl is not installed"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue