mirror of
https://github.com/aljazceru/omakub.git
synced 2026-02-10 23:04:24 +01:00
upd: add migration for btop themes
This commit is contained in:
13
migrations/1747237126.sh
Normal file
13
migrations/1747237126.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
cp ~/.local/share/omakub/configs/alacritty/btop.toml ~/.config/alacritty/btop.toml
|
||||
|
||||
THEME_NAMES=("Tokyo Night" "Catppuccin" "Nord" "Everforest" "Gruvbox" "Kanagawa" "Rose Pine")
|
||||
THEME=$(gum choose "${THEME_NAMES[@]}" ">> Skip" --header "Choose your current theme" --height 10 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
||||
|
||||
if [ -n "$THEME" ] && [ "$THEME" != ">>-skip" ]; then
|
||||
if [ -f "$OMAKUB_PATH/themes/$THEME/btop.theme" ]; then
|
||||
cp $OMAKUB_PATH/themes/$THEME/btop.theme ~/.config/btop/themes/$THEME.theme
|
||||
sed -i "s/color_theme = \".*\"/color_theme = \"$THEME\"/g" ~/.config/btop/btop.conf
|
||||
else
|
||||
sed -i "s/color_theme = \".*\"/color_theme = \"Default\"/g" ~/.config/btop/btop.conf
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user