Skip to content

Commit

Permalink
feat: Add Vapor & VGUI2 themes for Prompt terminal
Browse files Browse the repository at this point in the history
chore: Clean up Gradience theme handling to use skel
  • Loading branch information
KyleGospo committed Jan 31, 2024
1 parent 3c35001 commit d91ad21
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ profile-uuids=['2871e8027773ae74d6c87a5f659bbc74']
default-profile-uuid='2871e8027773ae74d6c87a5f659bbc74'

[org/gnome/Prompt/Profiles/2871e8027773ae74d6c87a5f659bbc74]
palette='Breeze'
palette='vapor'
opacity=0.9
18 changes: 14 additions & 4 deletions system_files/desktop/shared/usr/bin/bazzite-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BAZZITE_CONFIG_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/bazzite"
mkdir -p "$BAZZITE_CONFIG_DIR"

# SCRIPT VERSION
USER_SETUP_VER=27
USER_SETUP_VER=28
USER_SETUP_VER_FILE="$BAZZITE_CONFIG_DIR/version"
USER_SETUP_FEDORA_VER_FILE="$BAZZITE_CONFIG_DIR/fedora_version"
USER_SETUP_IMAGE_VER_FILE=$BAZZITE_CONFIG_DIR/image_name""
Expand Down Expand Up @@ -51,14 +51,24 @@ if [[ -f "$HOME/.config/fontconfig" ]]; then
fi

# Set up optional Gradience themes
THEME_DIR="/usr/share/ublue-os/bazzite/themes"
GRADIENCE_THEME_DIR="/usr/etc/skel/.var/app/com.github.GradienceTeam.Gradience/config/presets/user"
GRADIENCE_DIR="$HOME/.var/app/com.github.GradienceTeam.Gradience/config/presets/user"
mkdir -p "$GRADIENCE_DIR"
if [[ ! -f "$GRADIENCE_DIR/vapor.json" ]]; then
cp "$THEME_DIR/vapor.json" "$GRADIENCE_DIR/vapor.json"
cp "$GRADIENCE_THEME_DIR/vapor.json" "$GRADIENCE_DIR/vapor.json"
fi
if [[ ! -f "$GRADIENCE_DIR/vgui2.json" ]]; then
cp "$THEME_DIR/vgui2.json" "$GRADIENCE_DIR/vgui2.json"
cp "$GRADIENCE_THEME_DIR/vgui2.json" "$GRADIENCE_DIR/vgui2.json"
fi

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/vapor.palette" ]]; then
cp "$PROMPT_THEME_DIR/vapor.palette" "$PROMPT_DIR/vapor.palette"
fi
if [[ ! -f "$PROMPT_DIR/vgui2.palette" ]]; then
cp "$PROMPT_THEME_DIR/vgui2.palette" "$PROMPT_DIR/vgui2.palette"
fi

# Initialize Prompt config
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[Palette]
Name=Vapor
Background=#3F4638
Foreground=#FFFFFF
Cursor=#FCFCFC
Color0=#232627
Color1=#ED1515
Color2=#11D116
Color3=#F67400
Color4=#1D99F3
Color5=#9B59B6
Color6=#1ABC9C
Color7=#FCFCFC
Color8=#7F8C8D
Color9=#C0392B
Color10=#1CDC9A
Color11=#FDBC4B
Color12=#3DAEE9
Color13=#8E44AD
Color14=#16A085
Color15=#FFFFFF
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[Palette]
Name=VGUI2
Background=#24272F
Foreground=#FFFFFF
Cursor=#FFFFFF
Color0=#232627
Color1=#ED1515
Color2=#958831
Color3=#F67400
Color4=#1D99F3
Color5=#9B59B6
Color6=#1ABC9C
Color7=#FCFCFC
Color8=#7F8C8D
Color9=#C0392B
Color10=#1CDC9A
Color11=#FDBC4B
Color12=#3DAEE9
Color13=#8E44AD
Color14=#16A085
Color15=#FFFFFF

0 comments on commit d91ad21

Please sign in to comment.