Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
feat: Add modified Catppuccin theme with dark/light support as the de…
Browse files Browse the repository at this point in the history
…fault for Prompt (ublue-os#865)
  • Loading branch information
KyleGospo authored Jan 31, 2024
1 parent aa27a95 commit 507ae9a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
10 changes: 9 additions & 1 deletion usr/bin/ublue-user-setup
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion usr/etc/dconf/db/local.d/01-ublue
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ profile-uuids=['2871e8027773ae74d6c87a5f659bbc74']
default-profile-uuid='2871e8027773ae74d6c87a5f659bbc74'

[org/gnome/Prompt/Profiles/2871e8027773ae74d6c87a5f659bbc74]
palette='Catpuccin Mocha'
palette='catppuccin-dynamic'
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 507ae9a

Please sign in to comment.