1
0

update dotfiles

This commit is contained in:
2025-04-25 17:20:28 +02:00
parent d372b7c89b
commit 7ee84040fa
11 changed files with 436 additions and 0 deletions

View File

@@ -49,11 +49,26 @@ function switch_tmux_colors() {
fi
}
function switch_k9s_colors() {
local config_file
config_file="$DOTFILES/k9s/.config/k9s/config.yaml"
if ! grep -q 'rose-pine' "$config_file"; then
echo "Error, could not find rose pine settings in config file"
return 1
fi
if grep -q 'rose-pine-dawn' "$config_file"; then
sed_i 's/rose-pine-dawn/rose-pine/g' "$config_file"
else
sed_i 's/rose-pine/rose-pine-dawn/g' "$config_file"
fi
}
function switch_colors() {
# Only work if the DOTFILES variable is set
if [ -n "$DOTFILES" ]; then
switch_alacritty_colors
switch_tmux_colors
switch_k9s_colors
fi
}