diff --git a/bin/omarchy-generate-plymouth-theme b/bin/omarchy-generate-plymouth-theme deleted file mode 100755 index 2ca7da89..00000000 --- a/bin/omarchy-generate-plymouth-theme +++ /dev/null @@ -1,210 +0,0 @@ -#!/bin/bash - -# Omarchy Plymouth Theme Generator -# This script uses ImageMagick to recolor PNG assets from tokyo-night plymouth theme -# Usage: omarchy-generate-plymouth-theme --background=#24273a --foreground=#cad3f5 --progress-background=#343849 --progress-foreground=#cad3f5 --logo=#a6da95 --destination=catppuccin -set -e - -# Check if ImageMagick is installed -if ! command -v magick &>/dev/null; then - echo "ImageMagick 7+ is required but not installed. Please install it first:" - echo "yay -S imagemagick" - exit 1 -fi - -# Base directory -THEMES_DIR="$HOME/.local/share/omarchy/themes" - -# Default values (tokyo-night colors) -BACKGROUND="#1a1b26" -FOREGROUND="#c0caf5" -PROGRESS_BACKGROUND="#343849" -PROGRESS_FOREGROUND="#7aa2f7" -LOGO="#7aa2f7" -DESTINATION="" - -# Function to show usage -show_usage() { - echo "Usage: $0 --background= --foreground= --progress-background= --progress-foreground= --logo= --destination=" - echo - echo "Parameters:" - echo " --background Background color (hex format, e.g., #24273a)" - echo " --foreground Foreground color (hex format, e.g., #cad3f5)" - echo " --progress-background Progress bar background color (hex format, e.g., #343849)" - echo " --progress-foreground Progress bar foreground color (hex format, e.g., #cad3f5)" - echo " --logo Logo color (hex format, e.g., #a6da95)" - echo " --destination Destination theme name (e.g., catppuccin)" - echo - echo "Example:" - echo " $0 --background=#24273a --foreground=#cad3f5 --progress-background=#343849 --progress-foreground=#cad3f5 --logo=#a6da95 --destination=catppuccin" - exit 1 -} - -# Parse command line arguments -for arg in "$@"; do - case $arg in - --background=*) - BACKGROUND="${arg#*=}" - ;; - --foreground=*) - FOREGROUND="${arg#*=}" - ;; - --progress-background=*) - PROGRESS_BACKGROUND="${arg#*=}" - ;; - --progress-foreground=*) - PROGRESS_FOREGROUND="${arg#*=}" - ;; - --logo=*) - LOGO="${arg#*=}" - ;; - --destination=*) - DESTINATION="${arg#*=}" - ;; - --help | -h) - show_usage - ;; - *) - echo "Unknown parameter: $arg" - show_usage - ;; - esac -done - -# Check if destination is provided -if [[ -z "$DESTINATION" ]]; then - echo "Error: --destination parameter is required" - show_usage -fi - -# Convert hex to RGB values for Plymouth script -hex_to_rgb() { - local hex="$1" - # Remove # if present - hex="${hex#\#}" - - # Convert to decimal - local r=$((16#${hex:0:2})) - local g=$((16#${hex:2:2})) - local b=$((16#${hex:4:2})) - - # Convert to 0-1 range with 3 decimal places - printf "%.3f\n" $(awk "BEGIN {print $r/255}") - printf "%.3f\n" $(awk "BEGIN {print $g/255}") - printf "%.3f\n" $(awk "BEGIN {print $b/255}") -} - -# Convert hex to Plymouth hex format (0xRRGGBB) -hex_to_plymouth() { - local hex="$1" - # Remove # if present and prepend 0x - hex="${hex#\#}" - echo "0x${hex}" -} - -# Function to recolor an image -recolor_image() { - local input="$1" - local output="$2" - local color="$3" - local operation="$4" - - case "$operation" in - "fill") - # Simple fill with color (for lock, bullet, progress_bar, progress_box, logo, throbber) - # Use -strip to remove EXIF data and avoid warnings - magick "$input" -strip -fill "$color" -colorize 100% "$output" 2>/dev/null - ;; - "entry") - # Create semi-transparent black with colored border - # First get dimensions - dims=$(magick identify -format "%wx%h" "$input") - width=$(echo $dims | cut -d'x' -f1) - height=$(echo $dims | cut -d'x' -f2) - - # Create new image with transparent background, semi-transparent black fill, and colored border - magick -size ${width}x${height} xc:transparent \ - -fill "rgba(0,0,0,0.05)" -draw "rectangle 0,0 $((width - 1)),$((height - 1))" \ - -fill none -stroke "$color" -strokewidth 2 -draw "rectangle 1,1 $((width - 2)),$((height - 2))" \ - "$output" - ;; - esac -} - -# Source and destination directories -SOURCE_DIR="${THEMES_DIR}/tokyo-night/plymouth" -DEST_DIR="${THEMES_DIR}/${DESTINATION}/plymouth" - -# Check if source exists -if [[ ! -d "$SOURCE_DIR" ]]; then - echo "Error: Tokyo Night theme not found at $SOURCE_DIR" - exit 1 -fi - -echo "Plymouth Asset Recoloring Script" -echo "================================" -echo -echo "Configuration:" -echo " Background: $BACKGROUND" -echo " Foreground: $FOREGROUND" -echo " Progress Background: $PROGRESS_BACKGROUND" -echo " Progress Foreground: $PROGRESS_FOREGROUND" -echo " Logo: $LOGO" -echo " Destination: $DESTINATION" -echo - -# Create destination directory -echo "Creating destination directory: $DEST_DIR" -mkdir -p "$DEST_DIR" - -# Copy all files from tokyo-night -echo "Copying files from tokyo-night theme..." -cp -r "$SOURCE_DIR"/* "$DEST_DIR/" - -# Update omarchy.plymouth with background color -echo "Updating omarchy.plymouth..." -PLYMOUTH_BG=$(hex_to_plymouth "$BACKGROUND") -sed -i "s/ConsoleLogBackgroundColor=.*/ConsoleLogBackgroundColor=${PLYMOUTH_BG}/" "$DEST_DIR/omarchy.plymouth" - -# Update omarchy.script with background color -echo "Updating omarchy.script..." -RGB=($(hex_to_rgb "$BACKGROUND")) -sed -i "s/Window.SetBackgroundTopColor(.*);/Window.SetBackgroundTopColor(${RGB[0]}, ${RGB[1]}, ${RGB[2]});/" "$DEST_DIR/omarchy.script" -sed -i "s/Window.SetBackgroundBottomColor(.*);/Window.SetBackgroundBottomColor(${RGB[0]}, ${RGB[1]}, ${RGB[2]});/" "$DEST_DIR/omarchy.script" - -# Recolor assets -echo "Recoloring assets..." - -# Recolor lock.png -echo " - Recoloring lock.png with $FOREGROUND" -recolor_image "$DEST_DIR/lock.png" "$DEST_DIR/lock.png" "$FOREGROUND" "fill" - -# Recolor bullet.png -echo " - Recoloring bullet.png with $FOREGROUND" -recolor_image "$DEST_DIR/bullet.png" "$DEST_DIR/bullet.png" "$FOREGROUND" "fill" - -# Recolor progress_bar.png -echo " - Recoloring progress_bar.png with $PROGRESS_FOREGROUND" -recolor_image "$DEST_DIR/progress_bar.png" "$DEST_DIR/progress_bar.png" "$PROGRESS_FOREGROUND" "fill" - -# Recolor progress_box.png -echo " - Recoloring progress_box.png with $PROGRESS_BACKGROUND" -recolor_image "$DEST_DIR/progress_box.png" "$DEST_DIR/progress_box.png" "$PROGRESS_BACKGROUND" "fill" - -# Recolor entry.png -echo " - Creating entry.png with 5% black and $FOREGROUND border" -recolor_image "$DEST_DIR/entry.png" "$DEST_DIR/entry.png" "$FOREGROUND" "entry" - -# Recolor logo.png (using fill instead of tint) -echo " - Recoloring logo.png with $LOGO" -recolor_image "$DEST_DIR/logo.png" "$DEST_DIR/logo.png" "$LOGO" "fill" - -# Recolor throbber frames -echo " - Recoloring throbber frames (1-30) with $FOREGROUND" -for i in {1..30}; do - frame_file=$(printf "throbber-%02d.png" $i) - recolor_image "$DEST_DIR/$frame_file" "$DEST_DIR/$frame_file" "$FOREGROUND" "fill" 2>/dev/null -done - -echo -echo "✓ Plymouth theme for $DESTINATION has been created successfully!" diff --git a/bin/omarchy-plymouth-shutdown-sync b/bin/omarchy-plymouth-shutdown-sync deleted file mode 100755 index a2b3f6b7..00000000 --- a/bin/omarchy-plymouth-shutdown-sync +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -USER_HOME=$(find /home/* -maxdepth 0 | head -n1 | head -n1) - -echo "Running plymouth sync check for user dir: $USER_HOME" - -SYNC_FLAG="$USER_HOME/.config/omarchy/.plymouth-sync-needed" -CURRENT_THEME_LINK="$USER_HOME/.config/omarchy/current/theme" - -if [[ -f "$SYNC_FLAG" && -L "$CURRENT_THEME_LINK" ]]; then - CURRENT_THEME=$(readlink "$CURRENT_THEME_LINK") - THEME_NAME=$(basename "$CURRENT_THEME") - PLYMOUTH_DIR="$CURRENT_THEME/plymouth" - - if [[ -d "$PLYMOUTH_DIR" ]]; then - # Copy theme files to Plymouth - sudo cp -r "$CURRENT_THEME/plymouth/"* /usr/share/plymouth/themes/omarchy/ - - # Update Plymouth theme and rebuild - sudo plymouth-set-default-theme -R omarchy - - echo "Plymouth theme was found in $PLYMOUTH_DIR. Theme synced to $THEME_NAME." - else - echo "No plymouth directory found in $CURRENT_THEME. Skipping copy and rebuild." - fi - - # Remove sync flag - rm "$SYNC_FLAG" -fi diff --git a/bin/omarchy-theme-next b/bin/omarchy-theme-next index 0d20fc07..40ace808 100755 --- a/bin/omarchy-theme-next +++ b/bin/omarchy-theme-next @@ -35,9 +35,6 @@ ln -nsf "$NEW_THEME" "$HOME/.config/omarchy/current/theme" # Touch alacritty config to pickup the changed theme touch "$HOME/.config/alacritty/alacritty.toml" -# Touch .plymouth-sync-needed to signal rebuild on shutdown / reboot -touch "$HOME/.config/omarchy/.plymouth-sync-needed" - # Restart for new theme pkill -SIGUSR2 waybar makoctl reload diff --git a/install/plymouth.sh b/install/plymouth.sh deleted file mode 100755 index 13b91cdd..00000000 --- a/install/plymouth.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env bash - -# Install Plymouth package -echo "Installing Plymouth..." -yay -S --noconfirm --needed plymouth - -# Skip if plymouth already exists for some reason -if ! grep -q "plymouth" /etc/mkinitcpio.conf; then - # Backup original mkinitcpio.conf just in case - backup_timestamp=$(date +"%Y%m%d%H%M%S") - sudo cp /etc/mkinitcpio.conf "/etc/mkinitcpio.conf.bak.${backup_timestamp}" - - # Add plymouth to HOOKS array. Should be added: - # - After 'base' and 'udev' (or 'systemd' if using systemd hook) - # - Before 'encrypt' or 'sd-encrypt' if present - - # Use sed to add plymouth in-place - if grep -q "systemd" /etc/mkinitcpio.conf; then - # Add after systemd - sudo sed -i '/^HOOKS=/s/systemd/systemd plymouth/' /etc/mkinitcpio.conf - elif grep -q "udev" /etc/mkinitcpio.conf; then - # Add after udev - sudo sed -i '/^HOOKS=/s/udev/udev plymouth/' /etc/mkinitcpio.conf - else - # Fallback: add after base - sudo sed -i '/^HOOKS=/s/base/base plymouth/' /etc/mkinitcpio.conf - fi -fi - -# Regenerate initramfs -sudo mkinitcpio -P - -# Add kernel parameters for Plymouth (systemd-boot only) -if [ -d "/boot/loader/entries" ]; then - echo "Detected systemd-boot" - - for entry in /boot/loader/entries/*.conf; do - if [ -f "$entry" ]; then - # Skip fallback entries - if [[ "$(basename "$entry")" == *"fallback"* ]]; then - echo "Skipped: $(basename "$entry") (fallback entry)" - continue - fi - - # Skip if splash it already present for some reason - if ! grep -q "splash" "$entry"; then - sudo sed -i '/^options/ s/$/ splash quiet/' "$entry" - else - echo "Skipped: $(basename "$entry") (splash already present)" - fi - fi - done -else - echo "" - echo "systemd-boot not detected. Please manually add these kernel parameters:" - echo " - splash (to see the graphical splash screen)" - echo " - quiet (for silent boot)" - echo "" -fi - -# Touch .plymouth-sync-needed to signal rebuild on shutdown / reboot -touch "$HOME/.config/omarchy/.plymouth-sync-needed" - -# Create the systemd service -sudo tee /etc/systemd/system/omarchy-plymouth-shutdown.service >/dev/null < 0.01 && Plymouth.GetMode() != "shutdown" && Plymouth.GetMode() != "reboot" && Plymouth.GetMode() != "suspend") - { - if (!global.progress_visible) - { - progress_box.sprite.SetOpacity(1); - progress_bar.sprite.SetOpacity(1); - global.progress_visible = true; - } - - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth() * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - else - { - # Hide progress bar when progress is 0 - if (global.progress_visible) - { - progress_box.sprite.SetOpacity(0); - progress_bar.sprite.SetOpacity(0); - global.progress_visible = false; - } - } - } - -Plymouth.SetBootProgressFunction(progress_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprite = Sprite(); -message_sprite.SetPosition(10, 10, 10000); - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprite.SetImage(my_image); -} - -fun hide_message_callback (text) -{ - message_sprite.SetOpacity(0); -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); diff --git a/themes/catppuccin/plymouth/progress_bar.png b/themes/catppuccin/plymouth/progress_bar.png deleted file mode 100644 index b0715e51..00000000 Binary files a/themes/catppuccin/plymouth/progress_bar.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/progress_box.png b/themes/catppuccin/plymouth/progress_box.png deleted file mode 100644 index 6015b08a..00000000 Binary files a/themes/catppuccin/plymouth/progress_box.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-01.png b/themes/catppuccin/plymouth/throbber-01.png deleted file mode 100644 index da87e303..00000000 Binary files a/themes/catppuccin/plymouth/throbber-01.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-02.png b/themes/catppuccin/plymouth/throbber-02.png deleted file mode 100644 index 13e07fa4..00000000 Binary files a/themes/catppuccin/plymouth/throbber-02.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-03.png b/themes/catppuccin/plymouth/throbber-03.png deleted file mode 100644 index 4944f1a1..00000000 Binary files a/themes/catppuccin/plymouth/throbber-03.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-04.png b/themes/catppuccin/plymouth/throbber-04.png deleted file mode 100644 index 7d3a10d0..00000000 Binary files a/themes/catppuccin/plymouth/throbber-04.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-05.png b/themes/catppuccin/plymouth/throbber-05.png deleted file mode 100644 index f6f87b06..00000000 Binary files a/themes/catppuccin/plymouth/throbber-05.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-06.png b/themes/catppuccin/plymouth/throbber-06.png deleted file mode 100644 index b56d25bb..00000000 Binary files a/themes/catppuccin/plymouth/throbber-06.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-07.png b/themes/catppuccin/plymouth/throbber-07.png deleted file mode 100644 index 009cd78b..00000000 Binary files a/themes/catppuccin/plymouth/throbber-07.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-08.png b/themes/catppuccin/plymouth/throbber-08.png deleted file mode 100644 index 41015f65..00000000 Binary files a/themes/catppuccin/plymouth/throbber-08.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-09.png b/themes/catppuccin/plymouth/throbber-09.png deleted file mode 100644 index e9b0fe6d..00000000 Binary files a/themes/catppuccin/plymouth/throbber-09.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-10.png b/themes/catppuccin/plymouth/throbber-10.png deleted file mode 100644 index ad1fa72f..00000000 Binary files a/themes/catppuccin/plymouth/throbber-10.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-11.png b/themes/catppuccin/plymouth/throbber-11.png deleted file mode 100644 index 7a6b13d7..00000000 Binary files a/themes/catppuccin/plymouth/throbber-11.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-12.png b/themes/catppuccin/plymouth/throbber-12.png deleted file mode 100644 index e175fe00..00000000 Binary files a/themes/catppuccin/plymouth/throbber-12.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-13.png b/themes/catppuccin/plymouth/throbber-13.png deleted file mode 100644 index 33887f7f..00000000 Binary files a/themes/catppuccin/plymouth/throbber-13.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-14.png b/themes/catppuccin/plymouth/throbber-14.png deleted file mode 100644 index 516830d6..00000000 Binary files a/themes/catppuccin/plymouth/throbber-14.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-15.png b/themes/catppuccin/plymouth/throbber-15.png deleted file mode 100644 index 9258c7a1..00000000 Binary files a/themes/catppuccin/plymouth/throbber-15.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-16.png b/themes/catppuccin/plymouth/throbber-16.png deleted file mode 100644 index 3ddeebea..00000000 Binary files a/themes/catppuccin/plymouth/throbber-16.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-17.png b/themes/catppuccin/plymouth/throbber-17.png deleted file mode 100644 index a959e563..00000000 Binary files a/themes/catppuccin/plymouth/throbber-17.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-18.png b/themes/catppuccin/plymouth/throbber-18.png deleted file mode 100644 index e128bcc8..00000000 Binary files a/themes/catppuccin/plymouth/throbber-18.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-19.png b/themes/catppuccin/plymouth/throbber-19.png deleted file mode 100644 index e32b20ad..00000000 Binary files a/themes/catppuccin/plymouth/throbber-19.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-20.png b/themes/catppuccin/plymouth/throbber-20.png deleted file mode 100644 index 68a19889..00000000 Binary files a/themes/catppuccin/plymouth/throbber-20.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-21.png b/themes/catppuccin/plymouth/throbber-21.png deleted file mode 100644 index e6d2700d..00000000 Binary files a/themes/catppuccin/plymouth/throbber-21.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-22.png b/themes/catppuccin/plymouth/throbber-22.png deleted file mode 100644 index 284bc04e..00000000 Binary files a/themes/catppuccin/plymouth/throbber-22.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-23.png b/themes/catppuccin/plymouth/throbber-23.png deleted file mode 100644 index a05003c9..00000000 Binary files a/themes/catppuccin/plymouth/throbber-23.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-24.png b/themes/catppuccin/plymouth/throbber-24.png deleted file mode 100644 index 54e1b5ce..00000000 Binary files a/themes/catppuccin/plymouth/throbber-24.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-25.png b/themes/catppuccin/plymouth/throbber-25.png deleted file mode 100644 index d6858d5d..00000000 Binary files a/themes/catppuccin/plymouth/throbber-25.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-26.png b/themes/catppuccin/plymouth/throbber-26.png deleted file mode 100644 index 2c69deca..00000000 Binary files a/themes/catppuccin/plymouth/throbber-26.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-27.png b/themes/catppuccin/plymouth/throbber-27.png deleted file mode 100644 index 595667be..00000000 Binary files a/themes/catppuccin/plymouth/throbber-27.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-28.png b/themes/catppuccin/plymouth/throbber-28.png deleted file mode 100644 index 50487d6b..00000000 Binary files a/themes/catppuccin/plymouth/throbber-28.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-29.png b/themes/catppuccin/plymouth/throbber-29.png deleted file mode 100644 index a4427baa..00000000 Binary files a/themes/catppuccin/plymouth/throbber-29.png and /dev/null differ diff --git a/themes/catppuccin/plymouth/throbber-30.png b/themes/catppuccin/plymouth/throbber-30.png deleted file mode 100644 index b2e9ebf8..00000000 Binary files a/themes/catppuccin/plymouth/throbber-30.png and /dev/null differ diff --git a/themes/everforest/plymouth/bullet.png b/themes/everforest/plymouth/bullet.png deleted file mode 100644 index a0e9966a..00000000 Binary files a/themes/everforest/plymouth/bullet.png and /dev/null differ diff --git a/themes/everforest/plymouth/entry.png b/themes/everforest/plymouth/entry.png deleted file mode 100644 index 4ee9d758..00000000 Binary files a/themes/everforest/plymouth/entry.png and /dev/null differ diff --git a/themes/everforest/plymouth/lock.png b/themes/everforest/plymouth/lock.png deleted file mode 100644 index 7a37973b..00000000 Binary files a/themes/everforest/plymouth/lock.png and /dev/null differ diff --git a/themes/everforest/plymouth/logo.png b/themes/everforest/plymouth/logo.png deleted file mode 100644 index 4425be40..00000000 Binary files a/themes/everforest/plymouth/logo.png and /dev/null differ diff --git a/themes/everforest/plymouth/omarchy.plymouth b/themes/everforest/plymouth/omarchy.plymouth deleted file mode 100644 index bb3abed2..00000000 --- a/themes/everforest/plymouth/omarchy.plymouth +++ /dev/null @@ -1,11 +0,0 @@ -[Plymouth Theme] -Name=Omarchy -Description=Script example plugin. -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/omarchy -ScriptFile=/usr/share/plymouth/themes/omarchy/omarchy.script -ConsoleLogBackgroundColor=0x2d353b - - diff --git a/themes/everforest/plymouth/omarchy.script b/themes/everforest/plymouth/omarchy.script deleted file mode 100644 index f0f6f500..00000000 --- a/themes/everforest/plymouth/omarchy.script +++ /dev/null @@ -1,237 +0,0 @@ -# Omarchy Plymouth Theme Script - -Window.SetBackgroundTopColor(0.176, 0.208, 0.231); -Window.SetBackgroundBottomColor(0.176, 0.208, 0.231); - -logo.image = Image("logo.png"); -logo.sprite = Sprite(logo.image); -logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2); -logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2); -logo.sprite.SetOpacity (1); - -fun refresh_callback () - { - # Always animate spinner - it will be invisible when not needed - if (global.spinner_sprite) - { - global.spinner_frame++; - frame_index = Math.Int(global.spinner_frame / 3) % global.spinner_frame_count; - global.spinner_sprite.SetImage(global.spinner_images[frame_index]); - } - } - -Plymouth.SetRefreshFunction (refresh_callback); - -#----------------------------------------- Dialogue -------------------------------- - -status = "normal"; - -fun dialog_setup() - { - local.lock; - local.entry; - - lock.image = Image("lock.png"); - entry.image = Image("entry.png"); - - entry.sprite = Sprite(entry.image); - entry.x = Window.GetX() + Window.GetWidth()/2 - entry.image.GetWidth() / 2; - entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40; - entry.z = 10001; - entry.sprite.SetPosition(entry.x, entry.y, entry.z); - - lock.sprite = Sprite(lock.image); - lock.x = entry.x - lock.image.GetWidth() - 10; - lock.y = logo.sprite.GetY() + logo.image.GetHeight() + 40 + entry.image.GetHeight()/2 - lock.image.GetHeight()/2; - lock.z = 10001; - lock.sprite.SetPosition(lock.x, lock.y, lock.z); - - global.dialog.lock = lock; - global.dialog.entry = entry; - global.dialog.bullet_image = Image("bullet.png"); - dialog_opacity (1); - } - -fun dialog_opacity(opacity) - { - global.dialog.lock.sprite.SetOpacity (opacity); - global.dialog.entry.sprite.SetOpacity (opacity); - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(opacity); - } - } - -fun display_normal_callback () - { - global.status = "normal"; - if (global.dialog) - dialog_opacity (0); - spinner_show(); # Show spinner when no password dialog - } - -fun display_password_callback (prompt, bullets) - { - global.status = "password"; - - # Always hide spinner when showing password dialog - spinner_hide(); - - # Setup dialog if it doesn't exist - if (!global.dialog) - dialog_setup(); - else - dialog_opacity(1); - - # Clear all bullets first (user might hit backspace) - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(0); - } - - # Create and show bullets for current password - for (index = 0; index < bullets; index++) - { - if (!global.dialog.bullet[index]) - { - global.dialog.bullet[index].sprite = Sprite(global.dialog.bullet_image); - global.dialog.bullet[index].x = global.dialog.entry.x + 10 + index * (global.dialog.bullet_image.GetWidth() + 5); - global.dialog.bullet[index].y = global.dialog.entry.y + global.dialog.entry.image.GetHeight() / 2 - global.dialog.bullet_image.GetHeight() / 2; - global.dialog.bullet[index].z = global.dialog.entry.z + 1; - global.dialog.bullet[index].sprite.SetPosition(global.dialog.bullet[index].x, global.dialog.bullet[index].y, global.dialog.bullet[index].z); - } - global.dialog.bullet[index].sprite.SetOpacity(1); - } - } - -Plymouth.SetDisplayNormalFunction(display_normal_callback); -Plymouth.SetDisplayPasswordFunction(display_password_callback); - -#----------------------------------------- Spinner -------------------------------- - -global.spinner_sprite = NULL; -global.spinner_frame = 0; -global.spinner_frame_count = 30; -global.spinner_visible = false; -global.spinner_images = []; - -fun spinner_setup() - { - if (!global.spinner_sprite) - { - # Load all throbber frames - for (i = 1; i <= global.spinner_frame_count; i++) - { - if (i < 10) - filename = "throbber-000" + i + ".png"; - else - filename = "throbber-00" + i + ".png"; - global.spinner_images[i-1] = Image(filename); - } - - # Create spinner sprite - global.spinner_sprite = Sprite(global.spinner_images[0]); - global.spinner_x = Window.GetX() + Window.GetWidth() / 2 - global.spinner_images[0].GetWidth() / 2; - global.spinner_y = Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2 + logo.image.GetHeight() + 40; - global.spinner_sprite.SetPosition(global.spinner_x, global.spinner_y, 10002); - global.spinner_sprite.SetOpacity(0); - } - } - -fun spinner_show() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(1); - global.spinner_visible = true; - } - } - -fun spinner_hide() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(0); - global.spinner_visible = false; - } - } - -# Initialize spinner -spinner_setup(); -#----------------------------------------- Progress Bar -------------------------------- - -progress_box.image = Image("progress_box.png"); -progress_box.sprite = Sprite(progress_box.image); - -progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; -progress_box.y = Window.GetY() + Window.GetHeight() * 0.75 - progress_box.image.GetHeight() / 2; -progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); -progress_box.sprite.SetOpacity(0); - -progress_bar.original_image = Image("progress_bar.png"); -progress_bar.sprite = Sprite(); - -progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; -progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.5 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; -progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); -progress_bar.sprite.SetOpacity(0); - -global.progress_visible = false; -fun progress_callback (duration, progress) - { - if (progress > 0.01 && Plymouth.GetMode() != "shutdown" && Plymouth.GetMode() != "reboot" && Plymouth.GetMode() != "suspend") - { - if (!global.progress_visible) - { - progress_box.sprite.SetOpacity(1); - progress_bar.sprite.SetOpacity(1); - global.progress_visible = true; - } - - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth() * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - else - { - # Hide progress bar when progress is 0 - if (global.progress_visible) - { - progress_box.sprite.SetOpacity(0); - progress_bar.sprite.SetOpacity(0); - global.progress_visible = false; - } - } - } - -Plymouth.SetBootProgressFunction(progress_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprite = Sprite(); -message_sprite.SetPosition(10, 10, 10000); - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprite.SetImage(my_image); -} - -fun hide_message_callback (text) -{ - message_sprite.SetOpacity(0); -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); diff --git a/themes/everforest/plymouth/progress_bar.png b/themes/everforest/plymouth/progress_bar.png deleted file mode 100644 index e142b2e8..00000000 Binary files a/themes/everforest/plymouth/progress_bar.png and /dev/null differ diff --git a/themes/everforest/plymouth/progress_box.png b/themes/everforest/plymouth/progress_box.png deleted file mode 100644 index ac8d117a..00000000 Binary files a/themes/everforest/plymouth/progress_box.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-01.png b/themes/everforest/plymouth/throbber-01.png deleted file mode 100644 index 7ae4ebaa..00000000 Binary files a/themes/everforest/plymouth/throbber-01.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-02.png b/themes/everforest/plymouth/throbber-02.png deleted file mode 100644 index 2b15d882..00000000 Binary files a/themes/everforest/plymouth/throbber-02.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-03.png b/themes/everforest/plymouth/throbber-03.png deleted file mode 100644 index bbebb944..00000000 Binary files a/themes/everforest/plymouth/throbber-03.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-04.png b/themes/everforest/plymouth/throbber-04.png deleted file mode 100644 index 5e60b0bb..00000000 Binary files a/themes/everforest/plymouth/throbber-04.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-05.png b/themes/everforest/plymouth/throbber-05.png deleted file mode 100644 index 9e2ca62c..00000000 Binary files a/themes/everforest/plymouth/throbber-05.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-06.png b/themes/everforest/plymouth/throbber-06.png deleted file mode 100644 index e99d7fab..00000000 Binary files a/themes/everforest/plymouth/throbber-06.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-07.png b/themes/everforest/plymouth/throbber-07.png deleted file mode 100644 index b51eb4bb..00000000 Binary files a/themes/everforest/plymouth/throbber-07.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-08.png b/themes/everforest/plymouth/throbber-08.png deleted file mode 100644 index 2458a6e4..00000000 Binary files a/themes/everforest/plymouth/throbber-08.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-09.png b/themes/everforest/plymouth/throbber-09.png deleted file mode 100644 index 39d79415..00000000 Binary files a/themes/everforest/plymouth/throbber-09.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-10.png b/themes/everforest/plymouth/throbber-10.png deleted file mode 100644 index f8d5947e..00000000 Binary files a/themes/everforest/plymouth/throbber-10.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-11.png b/themes/everforest/plymouth/throbber-11.png deleted file mode 100644 index 1c9ebcc4..00000000 Binary files a/themes/everforest/plymouth/throbber-11.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-12.png b/themes/everforest/plymouth/throbber-12.png deleted file mode 100644 index a16e1770..00000000 Binary files a/themes/everforest/plymouth/throbber-12.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-13.png b/themes/everforest/plymouth/throbber-13.png deleted file mode 100644 index 868d56ec..00000000 Binary files a/themes/everforest/plymouth/throbber-13.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-14.png b/themes/everforest/plymouth/throbber-14.png deleted file mode 100644 index 113e30ca..00000000 Binary files a/themes/everforest/plymouth/throbber-14.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-15.png b/themes/everforest/plymouth/throbber-15.png deleted file mode 100644 index 42807015..00000000 Binary files a/themes/everforest/plymouth/throbber-15.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-16.png b/themes/everforest/plymouth/throbber-16.png deleted file mode 100644 index e74ad0b9..00000000 Binary files a/themes/everforest/plymouth/throbber-16.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-17.png b/themes/everforest/plymouth/throbber-17.png deleted file mode 100644 index 2d1cf09b..00000000 Binary files a/themes/everforest/plymouth/throbber-17.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-18.png b/themes/everforest/plymouth/throbber-18.png deleted file mode 100644 index 20c2be99..00000000 Binary files a/themes/everforest/plymouth/throbber-18.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-19.png b/themes/everforest/plymouth/throbber-19.png deleted file mode 100644 index 08d152a3..00000000 Binary files a/themes/everforest/plymouth/throbber-19.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-20.png b/themes/everforest/plymouth/throbber-20.png deleted file mode 100644 index 79f090be..00000000 Binary files a/themes/everforest/plymouth/throbber-20.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-21.png b/themes/everforest/plymouth/throbber-21.png deleted file mode 100644 index 11b785c4..00000000 Binary files a/themes/everforest/plymouth/throbber-21.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-22.png b/themes/everforest/plymouth/throbber-22.png deleted file mode 100644 index 5e1f7e78..00000000 Binary files a/themes/everforest/plymouth/throbber-22.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-23.png b/themes/everforest/plymouth/throbber-23.png deleted file mode 100644 index f1d05e47..00000000 Binary files a/themes/everforest/plymouth/throbber-23.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-24.png b/themes/everforest/plymouth/throbber-24.png deleted file mode 100644 index 9efa0d59..00000000 Binary files a/themes/everforest/plymouth/throbber-24.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-25.png b/themes/everforest/plymouth/throbber-25.png deleted file mode 100644 index 04e9d06e..00000000 Binary files a/themes/everforest/plymouth/throbber-25.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-26.png b/themes/everforest/plymouth/throbber-26.png deleted file mode 100644 index e26b2a62..00000000 Binary files a/themes/everforest/plymouth/throbber-26.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-27.png b/themes/everforest/plymouth/throbber-27.png deleted file mode 100644 index af869ea4..00000000 Binary files a/themes/everforest/plymouth/throbber-27.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-28.png b/themes/everforest/plymouth/throbber-28.png deleted file mode 100644 index c6cb1f62..00000000 Binary files a/themes/everforest/plymouth/throbber-28.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-29.png b/themes/everforest/plymouth/throbber-29.png deleted file mode 100644 index bbe9b3d6..00000000 Binary files a/themes/everforest/plymouth/throbber-29.png and /dev/null differ diff --git a/themes/everforest/plymouth/throbber-30.png b/themes/everforest/plymouth/throbber-30.png deleted file mode 100644 index 3d6b32a1..00000000 Binary files a/themes/everforest/plymouth/throbber-30.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/bullet.png b/themes/gruvbox/plymouth/bullet.png deleted file mode 100644 index 8dc004f9..00000000 Binary files a/themes/gruvbox/plymouth/bullet.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/entry.png b/themes/gruvbox/plymouth/entry.png deleted file mode 100644 index 48d9331a..00000000 Binary files a/themes/gruvbox/plymouth/entry.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/lock.png b/themes/gruvbox/plymouth/lock.png deleted file mode 100644 index c62bdec1..00000000 Binary files a/themes/gruvbox/plymouth/lock.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/logo.png b/themes/gruvbox/plymouth/logo.png deleted file mode 100644 index ed60b891..00000000 Binary files a/themes/gruvbox/plymouth/logo.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/omarchy.plymouth b/themes/gruvbox/plymouth/omarchy.plymouth deleted file mode 100644 index df907b6d..00000000 --- a/themes/gruvbox/plymouth/omarchy.plymouth +++ /dev/null @@ -1,11 +0,0 @@ -[Plymouth Theme] -Name=Omarchy -Description=Script example plugin. -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/omarchy -ScriptFile=/usr/share/plymouth/themes/omarchy/omarchy.script -ConsoleLogBackgroundColor=0x282828 - - diff --git a/themes/gruvbox/plymouth/omarchy.script b/themes/gruvbox/plymouth/omarchy.script deleted file mode 100644 index aa6fb9c2..00000000 --- a/themes/gruvbox/plymouth/omarchy.script +++ /dev/null @@ -1,237 +0,0 @@ -# Omarchy Plymouth Theme Script - -Window.SetBackgroundTopColor(0.157, 0.157, 0.157); -Window.SetBackgroundBottomColor(0.157, 0.157, 0.157); - -logo.image = Image("logo.png"); -logo.sprite = Sprite(logo.image); -logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2); -logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2); -logo.sprite.SetOpacity (1); - -fun refresh_callback () - { - # Always animate spinner - it will be invisible when not needed - if (global.spinner_sprite) - { - global.spinner_frame++; - frame_index = Math.Int(global.spinner_frame / 3) % global.spinner_frame_count; - global.spinner_sprite.SetImage(global.spinner_images[frame_index]); - } - } - -Plymouth.SetRefreshFunction (refresh_callback); - -#----------------------------------------- Dialogue -------------------------------- - -status = "normal"; - -fun dialog_setup() - { - local.lock; - local.entry; - - lock.image = Image("lock.png"); - entry.image = Image("entry.png"); - - entry.sprite = Sprite(entry.image); - entry.x = Window.GetX() + Window.GetWidth()/2 - entry.image.GetWidth() / 2; - entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40; - entry.z = 10001; - entry.sprite.SetPosition(entry.x, entry.y, entry.z); - - lock.sprite = Sprite(lock.image); - lock.x = entry.x - lock.image.GetWidth() - 10; - lock.y = logo.sprite.GetY() + logo.image.GetHeight() + 40 + entry.image.GetHeight()/2 - lock.image.GetHeight()/2; - lock.z = 10001; - lock.sprite.SetPosition(lock.x, lock.y, lock.z); - - global.dialog.lock = lock; - global.dialog.entry = entry; - global.dialog.bullet_image = Image("bullet.png"); - dialog_opacity (1); - } - -fun dialog_opacity(opacity) - { - global.dialog.lock.sprite.SetOpacity (opacity); - global.dialog.entry.sprite.SetOpacity (opacity); - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(opacity); - } - } - -fun display_normal_callback () - { - global.status = "normal"; - if (global.dialog) - dialog_opacity (0); - spinner_show(); # Show spinner when no password dialog - } - -fun display_password_callback (prompt, bullets) - { - global.status = "password"; - - # Always hide spinner when showing password dialog - spinner_hide(); - - # Setup dialog if it doesn't exist - if (!global.dialog) - dialog_setup(); - else - dialog_opacity(1); - - # Clear all bullets first (user might hit backspace) - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(0); - } - - # Create and show bullets for current password - for (index = 0; index < bullets; index++) - { - if (!global.dialog.bullet[index]) - { - global.dialog.bullet[index].sprite = Sprite(global.dialog.bullet_image); - global.dialog.bullet[index].x = global.dialog.entry.x + 10 + index * (global.dialog.bullet_image.GetWidth() + 5); - global.dialog.bullet[index].y = global.dialog.entry.y + global.dialog.entry.image.GetHeight() / 2 - global.dialog.bullet_image.GetHeight() / 2; - global.dialog.bullet[index].z = global.dialog.entry.z + 1; - global.dialog.bullet[index].sprite.SetPosition(global.dialog.bullet[index].x, global.dialog.bullet[index].y, global.dialog.bullet[index].z); - } - global.dialog.bullet[index].sprite.SetOpacity(1); - } - } - -Plymouth.SetDisplayNormalFunction(display_normal_callback); -Plymouth.SetDisplayPasswordFunction(display_password_callback); - -#----------------------------------------- Spinner -------------------------------- - -global.spinner_sprite = NULL; -global.spinner_frame = 0; -global.spinner_frame_count = 30; -global.spinner_visible = false; -global.spinner_images = []; - -fun spinner_setup() - { - if (!global.spinner_sprite) - { - # Load all throbber frames - for (i = 1; i <= global.spinner_frame_count; i++) - { - if (i < 10) - filename = "throbber-000" + i + ".png"; - else - filename = "throbber-00" + i + ".png"; - global.spinner_images[i-1] = Image(filename); - } - - # Create spinner sprite - global.spinner_sprite = Sprite(global.spinner_images[0]); - global.spinner_x = Window.GetX() + Window.GetWidth() / 2 - global.spinner_images[0].GetWidth() / 2; - global.spinner_y = Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2 + logo.image.GetHeight() + 40; - global.spinner_sprite.SetPosition(global.spinner_x, global.spinner_y, 10002); - global.spinner_sprite.SetOpacity(0); - } - } - -fun spinner_show() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(1); - global.spinner_visible = true; - } - } - -fun spinner_hide() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(0); - global.spinner_visible = false; - } - } - -# Initialize spinner -spinner_setup(); -#----------------------------------------- Progress Bar -------------------------------- - -progress_box.image = Image("progress_box.png"); -progress_box.sprite = Sprite(progress_box.image); - -progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; -progress_box.y = Window.GetY() + Window.GetHeight() * 0.75 - progress_box.image.GetHeight() / 2; -progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); -progress_box.sprite.SetOpacity(0); - -progress_bar.original_image = Image("progress_bar.png"); -progress_bar.sprite = Sprite(); - -progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; -progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.5 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; -progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); -progress_bar.sprite.SetOpacity(0); - -global.progress_visible = false; -fun progress_callback (duration, progress) - { - if (progress > 0.01 && Plymouth.GetMode() != "shutdown" && Plymouth.GetMode() != "reboot" && Plymouth.GetMode() != "suspend") - { - if (!global.progress_visible) - { - progress_box.sprite.SetOpacity(1); - progress_bar.sprite.SetOpacity(1); - global.progress_visible = true; - } - - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth() * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - else - { - # Hide progress bar when progress is 0 - if (global.progress_visible) - { - progress_box.sprite.SetOpacity(0); - progress_bar.sprite.SetOpacity(0); - global.progress_visible = false; - } - } - } - -Plymouth.SetBootProgressFunction(progress_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprite = Sprite(); -message_sprite.SetPosition(10, 10, 10000); - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprite.SetImage(my_image); -} - -fun hide_message_callback (text) -{ - message_sprite.SetOpacity(0); -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); diff --git a/themes/gruvbox/plymouth/progress_bar.png b/themes/gruvbox/plymouth/progress_bar.png deleted file mode 100644 index 43f3d208..00000000 Binary files a/themes/gruvbox/plymouth/progress_bar.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/progress_box.png b/themes/gruvbox/plymouth/progress_box.png deleted file mode 100644 index 8e314468..00000000 Binary files a/themes/gruvbox/plymouth/progress_box.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-01.png b/themes/gruvbox/plymouth/throbber-01.png deleted file mode 100644 index c1bc7553..00000000 Binary files a/themes/gruvbox/plymouth/throbber-01.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-02.png b/themes/gruvbox/plymouth/throbber-02.png deleted file mode 100644 index aaf55e64..00000000 Binary files a/themes/gruvbox/plymouth/throbber-02.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-03.png b/themes/gruvbox/plymouth/throbber-03.png deleted file mode 100644 index 83733f1c..00000000 Binary files a/themes/gruvbox/plymouth/throbber-03.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-04.png b/themes/gruvbox/plymouth/throbber-04.png deleted file mode 100644 index a0ec030b..00000000 Binary files a/themes/gruvbox/plymouth/throbber-04.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-05.png b/themes/gruvbox/plymouth/throbber-05.png deleted file mode 100644 index 6bae626f..00000000 Binary files a/themes/gruvbox/plymouth/throbber-05.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-06.png b/themes/gruvbox/plymouth/throbber-06.png deleted file mode 100644 index 3b6df470..00000000 Binary files a/themes/gruvbox/plymouth/throbber-06.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-07.png b/themes/gruvbox/plymouth/throbber-07.png deleted file mode 100644 index 4096f3d2..00000000 Binary files a/themes/gruvbox/plymouth/throbber-07.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-08.png b/themes/gruvbox/plymouth/throbber-08.png deleted file mode 100644 index e116845d..00000000 Binary files a/themes/gruvbox/plymouth/throbber-08.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-09.png b/themes/gruvbox/plymouth/throbber-09.png deleted file mode 100644 index 4a57250a..00000000 Binary files a/themes/gruvbox/plymouth/throbber-09.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-10.png b/themes/gruvbox/plymouth/throbber-10.png deleted file mode 100644 index b3ad0cf5..00000000 Binary files a/themes/gruvbox/plymouth/throbber-10.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-11.png b/themes/gruvbox/plymouth/throbber-11.png deleted file mode 100644 index 2066b21a..00000000 Binary files a/themes/gruvbox/plymouth/throbber-11.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-12.png b/themes/gruvbox/plymouth/throbber-12.png deleted file mode 100644 index 345df546..00000000 Binary files a/themes/gruvbox/plymouth/throbber-12.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-13.png b/themes/gruvbox/plymouth/throbber-13.png deleted file mode 100644 index d0157502..00000000 Binary files a/themes/gruvbox/plymouth/throbber-13.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-14.png b/themes/gruvbox/plymouth/throbber-14.png deleted file mode 100644 index 970ea4c5..00000000 Binary files a/themes/gruvbox/plymouth/throbber-14.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-15.png b/themes/gruvbox/plymouth/throbber-15.png deleted file mode 100644 index cde20443..00000000 Binary files a/themes/gruvbox/plymouth/throbber-15.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-16.png b/themes/gruvbox/plymouth/throbber-16.png deleted file mode 100644 index 91656574..00000000 Binary files a/themes/gruvbox/plymouth/throbber-16.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-17.png b/themes/gruvbox/plymouth/throbber-17.png deleted file mode 100644 index 9c617e3a..00000000 Binary files a/themes/gruvbox/plymouth/throbber-17.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-18.png b/themes/gruvbox/plymouth/throbber-18.png deleted file mode 100644 index 86476287..00000000 Binary files a/themes/gruvbox/plymouth/throbber-18.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-19.png b/themes/gruvbox/plymouth/throbber-19.png deleted file mode 100644 index b2f1dd53..00000000 Binary files a/themes/gruvbox/plymouth/throbber-19.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-20.png b/themes/gruvbox/plymouth/throbber-20.png deleted file mode 100644 index ec8f6f2d..00000000 Binary files a/themes/gruvbox/plymouth/throbber-20.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-21.png b/themes/gruvbox/plymouth/throbber-21.png deleted file mode 100644 index bc767440..00000000 Binary files a/themes/gruvbox/plymouth/throbber-21.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-22.png b/themes/gruvbox/plymouth/throbber-22.png deleted file mode 100644 index 2d21be32..00000000 Binary files a/themes/gruvbox/plymouth/throbber-22.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-23.png b/themes/gruvbox/plymouth/throbber-23.png deleted file mode 100644 index ef913014..00000000 Binary files a/themes/gruvbox/plymouth/throbber-23.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-24.png b/themes/gruvbox/plymouth/throbber-24.png deleted file mode 100644 index 8a7966fb..00000000 Binary files a/themes/gruvbox/plymouth/throbber-24.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-25.png b/themes/gruvbox/plymouth/throbber-25.png deleted file mode 100644 index d4373fac..00000000 Binary files a/themes/gruvbox/plymouth/throbber-25.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-26.png b/themes/gruvbox/plymouth/throbber-26.png deleted file mode 100644 index 7d130993..00000000 Binary files a/themes/gruvbox/plymouth/throbber-26.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-27.png b/themes/gruvbox/plymouth/throbber-27.png deleted file mode 100644 index 25075008..00000000 Binary files a/themes/gruvbox/plymouth/throbber-27.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-28.png b/themes/gruvbox/plymouth/throbber-28.png deleted file mode 100644 index fe9fe65f..00000000 Binary files a/themes/gruvbox/plymouth/throbber-28.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-29.png b/themes/gruvbox/plymouth/throbber-29.png deleted file mode 100644 index b9ceadcb..00000000 Binary files a/themes/gruvbox/plymouth/throbber-29.png and /dev/null differ diff --git a/themes/gruvbox/plymouth/throbber-30.png b/themes/gruvbox/plymouth/throbber-30.png deleted file mode 100644 index c29e5ac1..00000000 Binary files a/themes/gruvbox/plymouth/throbber-30.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/bullet.png b/themes/kanagawa/plymouth/bullet.png deleted file mode 100644 index 29f49d0d..00000000 Binary files a/themes/kanagawa/plymouth/bullet.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/entry.png b/themes/kanagawa/plymouth/entry.png deleted file mode 100644 index 44c85397..00000000 Binary files a/themes/kanagawa/plymouth/entry.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/lock.png b/themes/kanagawa/plymouth/lock.png deleted file mode 100644 index b682fd5b..00000000 Binary files a/themes/kanagawa/plymouth/lock.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/logo.png b/themes/kanagawa/plymouth/logo.png deleted file mode 100644 index 09cd61b8..00000000 Binary files a/themes/kanagawa/plymouth/logo.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/omarchy.plymouth b/themes/kanagawa/plymouth/omarchy.plymouth deleted file mode 100644 index 1b94e8a6..00000000 --- a/themes/kanagawa/plymouth/omarchy.plymouth +++ /dev/null @@ -1,11 +0,0 @@ -[Plymouth Theme] -Name=Omarchy -Description=Script example plugin. -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/omarchy -ScriptFile=/usr/share/plymouth/themes/omarchy/omarchy.script -ConsoleLogBackgroundColor=0x1f1f28 - - diff --git a/themes/kanagawa/plymouth/omarchy.script b/themes/kanagawa/plymouth/omarchy.script deleted file mode 100644 index d66d7610..00000000 --- a/themes/kanagawa/plymouth/omarchy.script +++ /dev/null @@ -1,237 +0,0 @@ -# Omarchy Plymouth Theme Script - -Window.SetBackgroundTopColor(0.122, 0.122, 0.157); -Window.SetBackgroundBottomColor(0.122, 0.122, 0.157); - -logo.image = Image("logo.png"); -logo.sprite = Sprite(logo.image); -logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2); -logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2); -logo.sprite.SetOpacity (1); - -fun refresh_callback () - { - # Always animate spinner - it will be invisible when not needed - if (global.spinner_sprite) - { - global.spinner_frame++; - frame_index = Math.Int(global.spinner_frame / 3) % global.spinner_frame_count; - global.spinner_sprite.SetImage(global.spinner_images[frame_index]); - } - } - -Plymouth.SetRefreshFunction (refresh_callback); - -#----------------------------------------- Dialogue -------------------------------- - -status = "normal"; - -fun dialog_setup() - { - local.lock; - local.entry; - - lock.image = Image("lock.png"); - entry.image = Image("entry.png"); - - entry.sprite = Sprite(entry.image); - entry.x = Window.GetX() + Window.GetWidth()/2 - entry.image.GetWidth() / 2; - entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40; - entry.z = 10001; - entry.sprite.SetPosition(entry.x, entry.y, entry.z); - - lock.sprite = Sprite(lock.image); - lock.x = entry.x - lock.image.GetWidth() - 10; - lock.y = logo.sprite.GetY() + logo.image.GetHeight() + 40 + entry.image.GetHeight()/2 - lock.image.GetHeight()/2; - lock.z = 10001; - lock.sprite.SetPosition(lock.x, lock.y, lock.z); - - global.dialog.lock = lock; - global.dialog.entry = entry; - global.dialog.bullet_image = Image("bullet.png"); - dialog_opacity (1); - } - -fun dialog_opacity(opacity) - { - global.dialog.lock.sprite.SetOpacity (opacity); - global.dialog.entry.sprite.SetOpacity (opacity); - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(opacity); - } - } - -fun display_normal_callback () - { - global.status = "normal"; - if (global.dialog) - dialog_opacity (0); - spinner_show(); # Show spinner when no password dialog - } - -fun display_password_callback (prompt, bullets) - { - global.status = "password"; - - # Always hide spinner when showing password dialog - spinner_hide(); - - # Setup dialog if it doesn't exist - if (!global.dialog) - dialog_setup(); - else - dialog_opacity(1); - - # Clear all bullets first (user might hit backspace) - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(0); - } - - # Create and show bullets for current password - for (index = 0; index < bullets; index++) - { - if (!global.dialog.bullet[index]) - { - global.dialog.bullet[index].sprite = Sprite(global.dialog.bullet_image); - global.dialog.bullet[index].x = global.dialog.entry.x + 10 + index * (global.dialog.bullet_image.GetWidth() + 5); - global.dialog.bullet[index].y = global.dialog.entry.y + global.dialog.entry.image.GetHeight() / 2 - global.dialog.bullet_image.GetHeight() / 2; - global.dialog.bullet[index].z = global.dialog.entry.z + 1; - global.dialog.bullet[index].sprite.SetPosition(global.dialog.bullet[index].x, global.dialog.bullet[index].y, global.dialog.bullet[index].z); - } - global.dialog.bullet[index].sprite.SetOpacity(1); - } - } - -Plymouth.SetDisplayNormalFunction(display_normal_callback); -Plymouth.SetDisplayPasswordFunction(display_password_callback); - -#----------------------------------------- Spinner -------------------------------- - -global.spinner_sprite = NULL; -global.spinner_frame = 0; -global.spinner_frame_count = 30; -global.spinner_visible = false; -global.spinner_images = []; - -fun spinner_setup() - { - if (!global.spinner_sprite) - { - # Load all throbber frames - for (i = 1; i <= global.spinner_frame_count; i++) - { - if (i < 10) - filename = "throbber-000" + i + ".png"; - else - filename = "throbber-00" + i + ".png"; - global.spinner_images[i-1] = Image(filename); - } - - # Create spinner sprite - global.spinner_sprite = Sprite(global.spinner_images[0]); - global.spinner_x = Window.GetX() + Window.GetWidth() / 2 - global.spinner_images[0].GetWidth() / 2; - global.spinner_y = Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2 + logo.image.GetHeight() + 40; - global.spinner_sprite.SetPosition(global.spinner_x, global.spinner_y, 10002); - global.spinner_sprite.SetOpacity(0); - } - } - -fun spinner_show() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(1); - global.spinner_visible = true; - } - } - -fun spinner_hide() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(0); - global.spinner_visible = false; - } - } - -# Initialize spinner -spinner_setup(); -#----------------------------------------- Progress Bar -------------------------------- - -progress_box.image = Image("progress_box.png"); -progress_box.sprite = Sprite(progress_box.image); - -progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; -progress_box.y = Window.GetY() + Window.GetHeight() * 0.75 - progress_box.image.GetHeight() / 2; -progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); -progress_box.sprite.SetOpacity(0); - -progress_bar.original_image = Image("progress_bar.png"); -progress_bar.sprite = Sprite(); - -progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; -progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.5 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; -progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); -progress_bar.sprite.SetOpacity(0); - -global.progress_visible = false; -fun progress_callback (duration, progress) - { - if (progress > 0.01 && Plymouth.GetMode() != "shutdown" && Plymouth.GetMode() != "reboot" && Plymouth.GetMode() != "suspend") - { - if (!global.progress_visible) - { - progress_box.sprite.SetOpacity(1); - progress_bar.sprite.SetOpacity(1); - global.progress_visible = true; - } - - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth() * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - else - { - # Hide progress bar when progress is 0 - if (global.progress_visible) - { - progress_box.sprite.SetOpacity(0); - progress_bar.sprite.SetOpacity(0); - global.progress_visible = false; - } - } - } - -Plymouth.SetBootProgressFunction(progress_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprite = Sprite(); -message_sprite.SetPosition(10, 10, 10000); - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprite.SetImage(my_image); -} - -fun hide_message_callback (text) -{ - message_sprite.SetOpacity(0); -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); diff --git a/themes/kanagawa/plymouth/progress_bar.png b/themes/kanagawa/plymouth/progress_bar.png deleted file mode 100644 index 22a35080..00000000 Binary files a/themes/kanagawa/plymouth/progress_bar.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/progress_box.png b/themes/kanagawa/plymouth/progress_box.png deleted file mode 100644 index 2e2d49bf..00000000 Binary files a/themes/kanagawa/plymouth/progress_box.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-01.png b/themes/kanagawa/plymouth/throbber-01.png deleted file mode 100644 index 4799c0d3..00000000 Binary files a/themes/kanagawa/plymouth/throbber-01.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-02.png b/themes/kanagawa/plymouth/throbber-02.png deleted file mode 100644 index 4e6ba0a6..00000000 Binary files a/themes/kanagawa/plymouth/throbber-02.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-03.png b/themes/kanagawa/plymouth/throbber-03.png deleted file mode 100644 index 7bf0de03..00000000 Binary files a/themes/kanagawa/plymouth/throbber-03.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-04.png b/themes/kanagawa/plymouth/throbber-04.png deleted file mode 100644 index 6c9feed6..00000000 Binary files a/themes/kanagawa/plymouth/throbber-04.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-05.png b/themes/kanagawa/plymouth/throbber-05.png deleted file mode 100644 index 278c6b4b..00000000 Binary files a/themes/kanagawa/plymouth/throbber-05.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-06.png b/themes/kanagawa/plymouth/throbber-06.png deleted file mode 100644 index 2ec7e940..00000000 Binary files a/themes/kanagawa/plymouth/throbber-06.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-07.png b/themes/kanagawa/plymouth/throbber-07.png deleted file mode 100644 index cb5f946f..00000000 Binary files a/themes/kanagawa/plymouth/throbber-07.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-08.png b/themes/kanagawa/plymouth/throbber-08.png deleted file mode 100644 index f4c9cf37..00000000 Binary files a/themes/kanagawa/plymouth/throbber-08.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-09.png b/themes/kanagawa/plymouth/throbber-09.png deleted file mode 100644 index 579396d1..00000000 Binary files a/themes/kanagawa/plymouth/throbber-09.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-10.png b/themes/kanagawa/plymouth/throbber-10.png deleted file mode 100644 index 04b3d107..00000000 Binary files a/themes/kanagawa/plymouth/throbber-10.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-11.png b/themes/kanagawa/plymouth/throbber-11.png deleted file mode 100644 index 397e52dd..00000000 Binary files a/themes/kanagawa/plymouth/throbber-11.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-12.png b/themes/kanagawa/plymouth/throbber-12.png deleted file mode 100644 index 8980d82a..00000000 Binary files a/themes/kanagawa/plymouth/throbber-12.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-13.png b/themes/kanagawa/plymouth/throbber-13.png deleted file mode 100644 index b6942cd7..00000000 Binary files a/themes/kanagawa/plymouth/throbber-13.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-14.png b/themes/kanagawa/plymouth/throbber-14.png deleted file mode 100644 index 2ff020c8..00000000 Binary files a/themes/kanagawa/plymouth/throbber-14.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-15.png b/themes/kanagawa/plymouth/throbber-15.png deleted file mode 100644 index 74ecb6b5..00000000 Binary files a/themes/kanagawa/plymouth/throbber-15.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-16.png b/themes/kanagawa/plymouth/throbber-16.png deleted file mode 100644 index 15ed6197..00000000 Binary files a/themes/kanagawa/plymouth/throbber-16.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-17.png b/themes/kanagawa/plymouth/throbber-17.png deleted file mode 100644 index 025210dc..00000000 Binary files a/themes/kanagawa/plymouth/throbber-17.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-18.png b/themes/kanagawa/plymouth/throbber-18.png deleted file mode 100644 index 663e9640..00000000 Binary files a/themes/kanagawa/plymouth/throbber-18.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-19.png b/themes/kanagawa/plymouth/throbber-19.png deleted file mode 100644 index d313bfce..00000000 Binary files a/themes/kanagawa/plymouth/throbber-19.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-20.png b/themes/kanagawa/plymouth/throbber-20.png deleted file mode 100644 index 8c9c6ae6..00000000 Binary files a/themes/kanagawa/plymouth/throbber-20.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-21.png b/themes/kanagawa/plymouth/throbber-21.png deleted file mode 100644 index 211aa091..00000000 Binary files a/themes/kanagawa/plymouth/throbber-21.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-22.png b/themes/kanagawa/plymouth/throbber-22.png deleted file mode 100644 index 04576cf0..00000000 Binary files a/themes/kanagawa/plymouth/throbber-22.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-23.png b/themes/kanagawa/plymouth/throbber-23.png deleted file mode 100644 index 7736cb94..00000000 Binary files a/themes/kanagawa/plymouth/throbber-23.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-24.png b/themes/kanagawa/plymouth/throbber-24.png deleted file mode 100644 index 46ac5f51..00000000 Binary files a/themes/kanagawa/plymouth/throbber-24.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-25.png b/themes/kanagawa/plymouth/throbber-25.png deleted file mode 100644 index 990459d8..00000000 Binary files a/themes/kanagawa/plymouth/throbber-25.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-26.png b/themes/kanagawa/plymouth/throbber-26.png deleted file mode 100644 index ec53fe5b..00000000 Binary files a/themes/kanagawa/plymouth/throbber-26.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-27.png b/themes/kanagawa/plymouth/throbber-27.png deleted file mode 100644 index f050150b..00000000 Binary files a/themes/kanagawa/plymouth/throbber-27.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-28.png b/themes/kanagawa/plymouth/throbber-28.png deleted file mode 100644 index 7854d207..00000000 Binary files a/themes/kanagawa/plymouth/throbber-28.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-29.png b/themes/kanagawa/plymouth/throbber-29.png deleted file mode 100644 index e35305a8..00000000 Binary files a/themes/kanagawa/plymouth/throbber-29.png and /dev/null differ diff --git a/themes/kanagawa/plymouth/throbber-30.png b/themes/kanagawa/plymouth/throbber-30.png deleted file mode 100644 index 4612bd0d..00000000 Binary files a/themes/kanagawa/plymouth/throbber-30.png and /dev/null differ diff --git a/themes/nord/plymouth/bullet.png b/themes/nord/plymouth/bullet.png deleted file mode 100644 index d5b457c1..00000000 Binary files a/themes/nord/plymouth/bullet.png and /dev/null differ diff --git a/themes/nord/plymouth/entry.png b/themes/nord/plymouth/entry.png deleted file mode 100644 index d091fcbd..00000000 Binary files a/themes/nord/plymouth/entry.png and /dev/null differ diff --git a/themes/nord/plymouth/lock.png b/themes/nord/plymouth/lock.png deleted file mode 100644 index d4df3c64..00000000 Binary files a/themes/nord/plymouth/lock.png and /dev/null differ diff --git a/themes/nord/plymouth/logo.png b/themes/nord/plymouth/logo.png deleted file mode 100644 index 29b6c3c7..00000000 Binary files a/themes/nord/plymouth/logo.png and /dev/null differ diff --git a/themes/nord/plymouth/omarchy.plymouth b/themes/nord/plymouth/omarchy.plymouth deleted file mode 100644 index 54ee5d54..00000000 --- a/themes/nord/plymouth/omarchy.plymouth +++ /dev/null @@ -1,11 +0,0 @@ -[Plymouth Theme] -Name=Omarchy -Description=Script example plugin. -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/omarchy -ScriptFile=/usr/share/plymouth/themes/omarchy/omarchy.script -ConsoleLogBackgroundColor=0x2e3440 - - diff --git a/themes/nord/plymouth/omarchy.script b/themes/nord/plymouth/omarchy.script deleted file mode 100644 index e1c1030a..00000000 --- a/themes/nord/plymouth/omarchy.script +++ /dev/null @@ -1,237 +0,0 @@ -# Omarchy Plymouth Theme Script - -Window.SetBackgroundTopColor(0.180, 0.204, 0.251); -Window.SetBackgroundBottomColor(0.180, 0.204, 0.251); - -logo.image = Image("logo.png"); -logo.sprite = Sprite(logo.image); -logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2); -logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2); -logo.sprite.SetOpacity (1); - -fun refresh_callback () - { - # Always animate spinner - it will be invisible when not needed - if (global.spinner_sprite) - { - global.spinner_frame++; - frame_index = Math.Int(global.spinner_frame / 3) % global.spinner_frame_count; - global.spinner_sprite.SetImage(global.spinner_images[frame_index]); - } - } - -Plymouth.SetRefreshFunction (refresh_callback); - -#----------------------------------------- Dialogue -------------------------------- - -status = "normal"; - -fun dialog_setup() - { - local.lock; - local.entry; - - lock.image = Image("lock.png"); - entry.image = Image("entry.png"); - - entry.sprite = Sprite(entry.image); - entry.x = Window.GetX() + Window.GetWidth()/2 - entry.image.GetWidth() / 2; - entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40; - entry.z = 10001; - entry.sprite.SetPosition(entry.x, entry.y, entry.z); - - lock.sprite = Sprite(lock.image); - lock.x = entry.x - lock.image.GetWidth() - 10; - lock.y = logo.sprite.GetY() + logo.image.GetHeight() + 40 + entry.image.GetHeight()/2 - lock.image.GetHeight()/2; - lock.z = 10001; - lock.sprite.SetPosition(lock.x, lock.y, lock.z); - - global.dialog.lock = lock; - global.dialog.entry = entry; - global.dialog.bullet_image = Image("bullet.png"); - dialog_opacity (1); - } - -fun dialog_opacity(opacity) - { - global.dialog.lock.sprite.SetOpacity (opacity); - global.dialog.entry.sprite.SetOpacity (opacity); - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(opacity); - } - } - -fun display_normal_callback () - { - global.status = "normal"; - if (global.dialog) - dialog_opacity (0); - spinner_show(); # Show spinner when no password dialog - } - -fun display_password_callback (prompt, bullets) - { - global.status = "password"; - - # Always hide spinner when showing password dialog - spinner_hide(); - - # Setup dialog if it doesn't exist - if (!global.dialog) - dialog_setup(); - else - dialog_opacity(1); - - # Clear all bullets first (user might hit backspace) - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(0); - } - - # Create and show bullets for current password - for (index = 0; index < bullets; index++) - { - if (!global.dialog.bullet[index]) - { - global.dialog.bullet[index].sprite = Sprite(global.dialog.bullet_image); - global.dialog.bullet[index].x = global.dialog.entry.x + 10 + index * (global.dialog.bullet_image.GetWidth() + 5); - global.dialog.bullet[index].y = global.dialog.entry.y + global.dialog.entry.image.GetHeight() / 2 - global.dialog.bullet_image.GetHeight() / 2; - global.dialog.bullet[index].z = global.dialog.entry.z + 1; - global.dialog.bullet[index].sprite.SetPosition(global.dialog.bullet[index].x, global.dialog.bullet[index].y, global.dialog.bullet[index].z); - } - global.dialog.bullet[index].sprite.SetOpacity(1); - } - } - -Plymouth.SetDisplayNormalFunction(display_normal_callback); -Plymouth.SetDisplayPasswordFunction(display_password_callback); - -#----------------------------------------- Spinner -------------------------------- - -global.spinner_sprite = NULL; -global.spinner_frame = 0; -global.spinner_frame_count = 30; -global.spinner_visible = false; -global.spinner_images = []; - -fun spinner_setup() - { - if (!global.spinner_sprite) - { - # Load all throbber frames - for (i = 1; i <= global.spinner_frame_count; i++) - { - if (i < 10) - filename = "throbber-000" + i + ".png"; - else - filename = "throbber-00" + i + ".png"; - global.spinner_images[i-1] = Image(filename); - } - - # Create spinner sprite - global.spinner_sprite = Sprite(global.spinner_images[0]); - global.spinner_x = Window.GetX() + Window.GetWidth() / 2 - global.spinner_images[0].GetWidth() / 2; - global.spinner_y = Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2 + logo.image.GetHeight() + 40; - global.spinner_sprite.SetPosition(global.spinner_x, global.spinner_y, 10002); - global.spinner_sprite.SetOpacity(0); - } - } - -fun spinner_show() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(1); - global.spinner_visible = true; - } - } - -fun spinner_hide() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(0); - global.spinner_visible = false; - } - } - -# Initialize spinner -spinner_setup(); -#----------------------------------------- Progress Bar -------------------------------- - -progress_box.image = Image("progress_box.png"); -progress_box.sprite = Sprite(progress_box.image); - -progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; -progress_box.y = Window.GetY() + Window.GetHeight() * 0.75 - progress_box.image.GetHeight() / 2; -progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); -progress_box.sprite.SetOpacity(0); - -progress_bar.original_image = Image("progress_bar.png"); -progress_bar.sprite = Sprite(); - -progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; -progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.5 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; -progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); -progress_bar.sprite.SetOpacity(0); - -global.progress_visible = false; -fun progress_callback (duration, progress) - { - if (progress > 0.01 && Plymouth.GetMode() != "shutdown" && Plymouth.GetMode() != "reboot" && Plymouth.GetMode() != "suspend") - { - if (!global.progress_visible) - { - progress_box.sprite.SetOpacity(1); - progress_bar.sprite.SetOpacity(1); - global.progress_visible = true; - } - - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth() * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - else - { - # Hide progress bar when progress is 0 - if (global.progress_visible) - { - progress_box.sprite.SetOpacity(0); - progress_bar.sprite.SetOpacity(0); - global.progress_visible = false; - } - } - } - -Plymouth.SetBootProgressFunction(progress_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprite = Sprite(); -message_sprite.SetPosition(10, 10, 10000); - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprite.SetImage(my_image); -} - -fun hide_message_callback (text) -{ - message_sprite.SetOpacity(0); -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); diff --git a/themes/nord/plymouth/progress_bar.png b/themes/nord/plymouth/progress_bar.png deleted file mode 100644 index 81e7764b..00000000 Binary files a/themes/nord/plymouth/progress_bar.png and /dev/null differ diff --git a/themes/nord/plymouth/progress_box.png b/themes/nord/plymouth/progress_box.png deleted file mode 100644 index da894d8c..00000000 Binary files a/themes/nord/plymouth/progress_box.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-01.png b/themes/nord/plymouth/throbber-01.png deleted file mode 100644 index a6a867cf..00000000 Binary files a/themes/nord/plymouth/throbber-01.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-02.png b/themes/nord/plymouth/throbber-02.png deleted file mode 100644 index a18b5aaa..00000000 Binary files a/themes/nord/plymouth/throbber-02.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-03.png b/themes/nord/plymouth/throbber-03.png deleted file mode 100644 index 0c066977..00000000 Binary files a/themes/nord/plymouth/throbber-03.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-04.png b/themes/nord/plymouth/throbber-04.png deleted file mode 100644 index 8e72cb24..00000000 Binary files a/themes/nord/plymouth/throbber-04.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-05.png b/themes/nord/plymouth/throbber-05.png deleted file mode 100644 index 487f2183..00000000 Binary files a/themes/nord/plymouth/throbber-05.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-06.png b/themes/nord/plymouth/throbber-06.png deleted file mode 100644 index 87bf973b..00000000 Binary files a/themes/nord/plymouth/throbber-06.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-07.png b/themes/nord/plymouth/throbber-07.png deleted file mode 100644 index 9ed61bbd..00000000 Binary files a/themes/nord/plymouth/throbber-07.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-08.png b/themes/nord/plymouth/throbber-08.png deleted file mode 100644 index 75fe31cd..00000000 Binary files a/themes/nord/plymouth/throbber-08.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-09.png b/themes/nord/plymouth/throbber-09.png deleted file mode 100644 index 7cf2aa1d..00000000 Binary files a/themes/nord/plymouth/throbber-09.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-10.png b/themes/nord/plymouth/throbber-10.png deleted file mode 100644 index 1c6bac97..00000000 Binary files a/themes/nord/plymouth/throbber-10.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-11.png b/themes/nord/plymouth/throbber-11.png deleted file mode 100644 index 7d64503b..00000000 Binary files a/themes/nord/plymouth/throbber-11.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-12.png b/themes/nord/plymouth/throbber-12.png deleted file mode 100644 index bf670a01..00000000 Binary files a/themes/nord/plymouth/throbber-12.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-13.png b/themes/nord/plymouth/throbber-13.png deleted file mode 100644 index 5a28e23b..00000000 Binary files a/themes/nord/plymouth/throbber-13.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-14.png b/themes/nord/plymouth/throbber-14.png deleted file mode 100644 index fe83ea8b..00000000 Binary files a/themes/nord/plymouth/throbber-14.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-15.png b/themes/nord/plymouth/throbber-15.png deleted file mode 100644 index 32bb9f84..00000000 Binary files a/themes/nord/plymouth/throbber-15.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-16.png b/themes/nord/plymouth/throbber-16.png deleted file mode 100644 index 3d91648a..00000000 Binary files a/themes/nord/plymouth/throbber-16.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-17.png b/themes/nord/plymouth/throbber-17.png deleted file mode 100644 index 76d709e1..00000000 Binary files a/themes/nord/plymouth/throbber-17.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-18.png b/themes/nord/plymouth/throbber-18.png deleted file mode 100644 index 86f83461..00000000 Binary files a/themes/nord/plymouth/throbber-18.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-19.png b/themes/nord/plymouth/throbber-19.png deleted file mode 100644 index 4937f9b0..00000000 Binary files a/themes/nord/plymouth/throbber-19.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-20.png b/themes/nord/plymouth/throbber-20.png deleted file mode 100644 index 7949decb..00000000 Binary files a/themes/nord/plymouth/throbber-20.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-21.png b/themes/nord/plymouth/throbber-21.png deleted file mode 100644 index c6f56c77..00000000 Binary files a/themes/nord/plymouth/throbber-21.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-22.png b/themes/nord/plymouth/throbber-22.png deleted file mode 100644 index 196e8854..00000000 Binary files a/themes/nord/plymouth/throbber-22.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-23.png b/themes/nord/plymouth/throbber-23.png deleted file mode 100644 index 2465d4e1..00000000 Binary files a/themes/nord/plymouth/throbber-23.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-24.png b/themes/nord/plymouth/throbber-24.png deleted file mode 100644 index 40bdf982..00000000 Binary files a/themes/nord/plymouth/throbber-24.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-25.png b/themes/nord/plymouth/throbber-25.png deleted file mode 100644 index 037453ae..00000000 Binary files a/themes/nord/plymouth/throbber-25.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-26.png b/themes/nord/plymouth/throbber-26.png deleted file mode 100644 index 8757e00c..00000000 Binary files a/themes/nord/plymouth/throbber-26.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-27.png b/themes/nord/plymouth/throbber-27.png deleted file mode 100644 index 150a9e22..00000000 Binary files a/themes/nord/plymouth/throbber-27.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-28.png b/themes/nord/plymouth/throbber-28.png deleted file mode 100644 index 88ced455..00000000 Binary files a/themes/nord/plymouth/throbber-28.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-29.png b/themes/nord/plymouth/throbber-29.png deleted file mode 100644 index 82017ded..00000000 Binary files a/themes/nord/plymouth/throbber-29.png and /dev/null differ diff --git a/themes/nord/plymouth/throbber-30.png b/themes/nord/plymouth/throbber-30.png deleted file mode 100644 index fd2fc258..00000000 Binary files a/themes/nord/plymouth/throbber-30.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/bullet.png b/themes/tokyo-night/plymouth/bullet.png deleted file mode 100644 index 0b3ffa7f..00000000 Binary files a/themes/tokyo-night/plymouth/bullet.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/entry.png b/themes/tokyo-night/plymouth/entry.png deleted file mode 100644 index 5c789179..00000000 Binary files a/themes/tokyo-night/plymouth/entry.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/lock.png b/themes/tokyo-night/plymouth/lock.png deleted file mode 100644 index 06bb109e..00000000 Binary files a/themes/tokyo-night/plymouth/lock.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/logo.png b/themes/tokyo-night/plymouth/logo.png deleted file mode 100644 index e4b25260..00000000 Binary files a/themes/tokyo-night/plymouth/logo.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/omarchy.plymouth b/themes/tokyo-night/plymouth/omarchy.plymouth deleted file mode 100644 index b8244730..00000000 --- a/themes/tokyo-night/plymouth/omarchy.plymouth +++ /dev/null @@ -1,11 +0,0 @@ -[Plymouth Theme] -Name=Omarchy -Description=Script example plugin. -ModuleName=script - -[script] -ImageDir=/usr/share/plymouth/themes/omarchy -ScriptFile=/usr/share/plymouth/themes/omarchy/omarchy.script -ConsoleLogBackgroundColor=0x1a1b26 - - diff --git a/themes/tokyo-night/plymouth/omarchy.script b/themes/tokyo-night/plymouth/omarchy.script deleted file mode 100644 index 8f4998f7..00000000 --- a/themes/tokyo-night/plymouth/omarchy.script +++ /dev/null @@ -1,237 +0,0 @@ -# Omarchy Plymouth Theme Script - -Window.SetBackgroundTopColor(0.101, 0.105, 0.149); -Window.SetBackgroundBottomColor(0.101, 0.105, 0.149); - -logo.image = Image("logo.png"); -logo.sprite = Sprite(logo.image); -logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2); -logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2); -logo.sprite.SetOpacity (1); - -fun refresh_callback () - { - # Always animate spinner - it will be invisible when not needed - if (global.spinner_sprite) - { - global.spinner_frame++; - frame_index = Math.Int(global.spinner_frame / 3) % global.spinner_frame_count; - global.spinner_sprite.SetImage(global.spinner_images[frame_index]); - } - } - -Plymouth.SetRefreshFunction (refresh_callback); - -#----------------------------------------- Dialogue -------------------------------- - -status = "normal"; - -fun dialog_setup() - { - local.lock; - local.entry; - - lock.image = Image("lock.png"); - entry.image = Image("entry.png"); - - entry.sprite = Sprite(entry.image); - entry.x = Window.GetX() + Window.GetWidth()/2 - entry.image.GetWidth() / 2; - entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40; - entry.z = 10001; - entry.sprite.SetPosition(entry.x, entry.y, entry.z); - - lock.sprite = Sprite(lock.image); - lock.x = entry.x - lock.image.GetWidth() - 10; - lock.y = logo.sprite.GetY() + logo.image.GetHeight() + 40 + entry.image.GetHeight()/2 - lock.image.GetHeight()/2; - lock.z = 10001; - lock.sprite.SetPosition(lock.x, lock.y, lock.z); - - global.dialog.lock = lock; - global.dialog.entry = entry; - global.dialog.bullet_image = Image("bullet.png"); - dialog_opacity (1); - } - -fun dialog_opacity(opacity) - { - global.dialog.lock.sprite.SetOpacity (opacity); - global.dialog.entry.sprite.SetOpacity (opacity); - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(opacity); - } - } - -fun display_normal_callback () - { - global.status = "normal"; - if (global.dialog) - dialog_opacity (0); - spinner_show(); # Show spinner when no password dialog - } - -fun display_password_callback (prompt, bullets) - { - global.status = "password"; - - # Always hide spinner when showing password dialog - spinner_hide(); - - # Setup dialog if it doesn't exist - if (!global.dialog) - dialog_setup(); - else - dialog_opacity(1); - - # Clear all bullets first (user might hit backspace) - for (index = 0; global.dialog.bullet[index]; index++) - { - global.dialog.bullet[index].sprite.SetOpacity(0); - } - - # Create and show bullets for current password - for (index = 0; index < bullets; index++) - { - if (!global.dialog.bullet[index]) - { - global.dialog.bullet[index].sprite = Sprite(global.dialog.bullet_image); - global.dialog.bullet[index].x = global.dialog.entry.x + 10 + index * (global.dialog.bullet_image.GetWidth() + 5); - global.dialog.bullet[index].y = global.dialog.entry.y + global.dialog.entry.image.GetHeight() / 2 - global.dialog.bullet_image.GetHeight() / 2; - global.dialog.bullet[index].z = global.dialog.entry.z + 1; - global.dialog.bullet[index].sprite.SetPosition(global.dialog.bullet[index].x, global.dialog.bullet[index].y, global.dialog.bullet[index].z); - } - global.dialog.bullet[index].sprite.SetOpacity(1); - } - } - -Plymouth.SetDisplayNormalFunction(display_normal_callback); -Plymouth.SetDisplayPasswordFunction(display_password_callback); - -#----------------------------------------- Spinner -------------------------------- - -global.spinner_sprite = NULL; -global.spinner_frame = 0; -global.spinner_frame_count = 30; -global.spinner_visible = false; -global.spinner_images = []; - -fun spinner_setup() - { - if (!global.spinner_sprite) - { - # Load all throbber frames - for (i = 1; i <= global.spinner_frame_count; i++) - { - if (i < 10) - filename = "throbber-000" + i + ".png"; - else - filename = "throbber-00" + i + ".png"; - global.spinner_images[i-1] = Image(filename); - } - - # Create spinner sprite - global.spinner_sprite = Sprite(global.spinner_images[0]); - global.spinner_x = Window.GetX() + Window.GetWidth() / 2 - global.spinner_images[0].GetWidth() / 2; - global.spinner_y = Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2 + logo.image.GetHeight() + 40; - global.spinner_sprite.SetPosition(global.spinner_x, global.spinner_y, 10002); - global.spinner_sprite.SetOpacity(0); - } - } - -fun spinner_show() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(1); - global.spinner_visible = true; - } - } - -fun spinner_hide() - { - if (global.spinner_sprite) - { - global.spinner_sprite.SetOpacity(0); - global.spinner_visible = false; - } - } - -# Initialize spinner -spinner_setup(); -#----------------------------------------- Progress Bar -------------------------------- - -progress_box.image = Image("progress_box.png"); -progress_box.sprite = Sprite(progress_box.image); - -progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; -progress_box.y = Window.GetY() + Window.GetHeight() * 0.75 - progress_box.image.GetHeight() / 2; -progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); -progress_box.sprite.SetOpacity(0); - -progress_bar.original_image = Image("progress_bar.png"); -progress_bar.sprite = Sprite(); - -progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; -progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.5 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; -progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); -progress_bar.sprite.SetOpacity(0); - -global.progress_visible = false; -fun progress_callback (duration, progress) - { - if (progress > 0.01 && Plymouth.GetMode() != "shutdown" && Plymouth.GetMode() != "reboot" && Plymouth.GetMode() != "suspend") - { - if (!global.progress_visible) - { - progress_box.sprite.SetOpacity(1); - progress_bar.sprite.SetOpacity(1); - global.progress_visible = true; - } - - if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) - { - progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth() * progress, progress_bar.original_image.GetHeight()); - progress_bar.sprite.SetImage (progress_bar.image); - } - } - else - { - # Hide progress bar when progress is 0 - if (global.progress_visible) - { - progress_box.sprite.SetOpacity(0); - progress_bar.sprite.SetOpacity(0); - global.progress_visible = false; - } - } - } - -Plymouth.SetBootProgressFunction(progress_callback); - -#----------------------------------------- Quit -------------------------------- - -fun quit_callback () -{ - logo.sprite.SetOpacity (1); -} - -Plymouth.SetQuitFunction(quit_callback); - -#----------------------------------------- Message -------------------------------- - -message_sprite = Sprite(); -message_sprite.SetPosition(10, 10, 10000); - -fun display_message_callback (text) -{ - my_image = Image.Text(text, 1, 1, 1); - message_sprite.SetImage(my_image); -} - -fun hide_message_callback (text) -{ - message_sprite.SetOpacity(0); -} - -Plymouth.SetDisplayMessageFunction (display_message_callback); -Plymouth.SetHideMessageFunction (hide_message_callback); diff --git a/themes/tokyo-night/plymouth/progress_bar.png b/themes/tokyo-night/plymouth/progress_bar.png deleted file mode 100644 index dbb9fd74..00000000 Binary files a/themes/tokyo-night/plymouth/progress_bar.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/progress_box.png b/themes/tokyo-night/plymouth/progress_box.png deleted file mode 100644 index 6a263f24..00000000 Binary files a/themes/tokyo-night/plymouth/progress_box.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-01.png b/themes/tokyo-night/plymouth/throbber-01.png deleted file mode 100644 index 85367eba..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-01.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-02.png b/themes/tokyo-night/plymouth/throbber-02.png deleted file mode 100644 index 6eae3e6b..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-02.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-03.png b/themes/tokyo-night/plymouth/throbber-03.png deleted file mode 100644 index 2e28ef7e..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-03.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-04.png b/themes/tokyo-night/plymouth/throbber-04.png deleted file mode 100644 index cd322483..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-04.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-05.png b/themes/tokyo-night/plymouth/throbber-05.png deleted file mode 100644 index f4bfb219..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-05.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-06.png b/themes/tokyo-night/plymouth/throbber-06.png deleted file mode 100644 index 5b1a5cd4..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-06.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-07.png b/themes/tokyo-night/plymouth/throbber-07.png deleted file mode 100644 index 2c93f477..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-07.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-08.png b/themes/tokyo-night/plymouth/throbber-08.png deleted file mode 100644 index 10cc347c..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-08.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-09.png b/themes/tokyo-night/plymouth/throbber-09.png deleted file mode 100644 index c5113519..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-09.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-10.png b/themes/tokyo-night/plymouth/throbber-10.png deleted file mode 100644 index ccd1b325..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-10.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-11.png b/themes/tokyo-night/plymouth/throbber-11.png deleted file mode 100644 index dc823488..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-11.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-12.png b/themes/tokyo-night/plymouth/throbber-12.png deleted file mode 100644 index 76565d53..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-12.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-13.png b/themes/tokyo-night/plymouth/throbber-13.png deleted file mode 100644 index da5a9953..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-13.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-14.png b/themes/tokyo-night/plymouth/throbber-14.png deleted file mode 100644 index b3097d7d..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-14.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-15.png b/themes/tokyo-night/plymouth/throbber-15.png deleted file mode 100644 index a3a5e040..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-15.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-16.png b/themes/tokyo-night/plymouth/throbber-16.png deleted file mode 100644 index 32a5fd56..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-16.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-17.png b/themes/tokyo-night/plymouth/throbber-17.png deleted file mode 100644 index e726b5cc..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-17.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-18.png b/themes/tokyo-night/plymouth/throbber-18.png deleted file mode 100644 index 19d0242d..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-18.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-19.png b/themes/tokyo-night/plymouth/throbber-19.png deleted file mode 100644 index 86ef4f79..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-19.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-20.png b/themes/tokyo-night/plymouth/throbber-20.png deleted file mode 100644 index d00033ff..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-20.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-21.png b/themes/tokyo-night/plymouth/throbber-21.png deleted file mode 100644 index 7d8b06b4..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-21.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-22.png b/themes/tokyo-night/plymouth/throbber-22.png deleted file mode 100644 index a3a19447..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-22.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-23.png b/themes/tokyo-night/plymouth/throbber-23.png deleted file mode 100644 index 8355e65c..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-23.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-24.png b/themes/tokyo-night/plymouth/throbber-24.png deleted file mode 100644 index a26816bc..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-24.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-25.png b/themes/tokyo-night/plymouth/throbber-25.png deleted file mode 100644 index 5251b086..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-25.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-26.png b/themes/tokyo-night/plymouth/throbber-26.png deleted file mode 100644 index fa79cbcd..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-26.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-27.png b/themes/tokyo-night/plymouth/throbber-27.png deleted file mode 100644 index 1831e15c..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-27.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-28.png b/themes/tokyo-night/plymouth/throbber-28.png deleted file mode 100644 index 91cd3965..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-28.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-29.png b/themes/tokyo-night/plymouth/throbber-29.png deleted file mode 100644 index 00a392b7..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-29.png and /dev/null differ diff --git a/themes/tokyo-night/plymouth/throbber-30.png b/themes/tokyo-night/plymouth/throbber-30.png deleted file mode 100644 index 688f4438..00000000 Binary files a/themes/tokyo-night/plymouth/throbber-30.png and /dev/null differ