diff --git a/usr/bin/ublue-user-setup b/usr/bin/ublue-user-setup index 018bfe75f9c..e487798f90d 100755 --- a/usr/bin/ublue-user-setup +++ b/usr/bin/ublue-user-setup @@ -1,7 +1,7 @@ #!/usr/bin/env bash # SCRIPT VERSION -USER_SETUP_VER=2 +USER_SETUP_VER=3 USER_SETUP_VER_FILE="${XDG_DATA_HOME:-$HOME/.local/share}/ublue/user-setup" USER_SETUP_VER_RAN=$(cat $USER_SETUP_VER_FILE) @@ -31,6 +31,14 @@ IMAGE_NAME=$(jq -r '."image-name"' < $IMAGE_INFO) # Enable NTP timedatectl set-ntp true +# Ensure custom prompt theme is present +PROMPT_THEME_DIR="/usr/etc/skel/.local/share/org.gnome.Prompt/palettes" +PROMPT_DIR="$HOME/.local/share/org.gnome.Prompt/palettes" +mkdir -p "$PROMPT_DIR" +if [[ ! -f "$PROMPT_DIR/catppuccin-dynamic.palette" ]]; then + cp "$PROMPT_THEME_DIR/catppuccin-dynamic.palette" "$PROMPT_DIR/catppuccin-dynamic.palette" +fi + # Prevent future executions echo "Writing state file" echo $USER_SETUP_VER > $USER_SETUP_VER_FILE \ No newline at end of file diff --git a/usr/etc/dconf/db/local.d/01-ublue b/usr/etc/dconf/db/local.d/01-ublue index 908792eaf1f..93581066a17 100644 --- a/usr/etc/dconf/db/local.d/01-ublue +++ b/usr/etc/dconf/db/local.d/01-ublue @@ -128,4 +128,4 @@ profile-uuids=['2871e8027773ae74d6c87a5f659bbc74'] default-profile-uuid='2871e8027773ae74d6c87a5f659bbc74' [org/gnome/Prompt/Profiles/2871e8027773ae74d6c87a5f659bbc74] -palette='Catpuccin Mocha' +palette='catppuccin-dynamic' diff --git a/usr/etc/skel/.local/share/org.gnome.Prompt/palettes/catppuccin-dynamic.palette b/usr/etc/skel/.local/share/org.gnome.Prompt/palettes/catppuccin-dynamic.palette new file mode 100644 index 00000000000..fcd3bfcd1af --- /dev/null +++ b/usr/etc/skel/.local/share/org.gnome.Prompt/palettes/catppuccin-dynamic.palette @@ -0,0 +1,45 @@ +[Palette] +Name=Catppuccin Dynamic +Primary=true + +[Light] +Background=#EFF1F5 +Foreground=#4C4F69 +Cursor=#4C4F69 +Color0=#5C5F77 +Color1=#D20F39 +Color2=#40A02B +Color3=#DF8E1D +Color4=#1E66F5 +Color5=#EA76CB +Color6=#179299 +Color7=#ACB0BE +Color8=#6C6F85 +Color9=#D20F39 +Color10=#40A02B +Color11=#DF8E1D +Color12=#1E66F5 +Color13=#EA76CB +Color14=#179299 +Color15=#BCC0CC + +[Dark] +Background=#1E1E2E +Foreground=#CDD6F4 +Cursor=#CDD6F4 +Color0=#45475A +Color1=#F38BA8 +Color2=#A6E3A1 +Color3=#F9E2AF +Color4=#89B4FA +Color5=#F5C2E7 +Color6=#94E2D5 +Color7=#BAC2DE +Color8=#585B70 +Color9=#F38BA8 +Color10=#A6E3A1 +Color11=#F9E2AF +Color12=#89B4FA +Color13=#F5C2E7 +Color14=#94E2D5 +Color15=#A6ADC8