From 4e6901734cd29d9d95b591af419b30864843211b Mon Sep 17 00:00:00 2001 From: Ryan Hughes <1630358+ryanrhughes@users.noreply.github.com> Date: Mon, 7 Jul 2025 19:05:07 -0400 Subject: [PATCH] Remove theme switching --- bin/omarchy-plymouth-shutdown-sync | 28 ---------------------------- bin/omarchy-theme-next | 3 --- install/plymouth.sh | 25 ------------------------- 3 files changed, 56 deletions(-) delete mode 100755 bin/omarchy-plymouth-shutdown-sync diff --git a/bin/omarchy-plymouth-shutdown-sync b/bin/omarchy-plymouth-shutdown-sync deleted file mode 100755 index a2b3f6b..0000000 --- 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 0d20fc0..40ace80 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 index 13b91cd..c77c71c 100755 --- a/install/plymouth.sh +++ b/install/plymouth.sh @@ -57,28 +57,3 @@ else 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 <