Compare commits

...

3 Commits

4 changed files with 64 additions and 13 deletions
+1
View File
@@ -35,6 +35,7 @@ The installer automatically exposes scripts from the `scripts/` directory as glo
- **`blob_wallpaper [path]`**: Sets your background using Omarchy's background system. If used with an image from `~/wallpapers/` or a valid path, it leverages Pywal to generate a full system color palette and dynamically updates the `blob-dynamic` theme, AGS widgets, and Waybar. - **`blob_wallpaper [path]`**: Sets your background using Omarchy's background system. If used with an image from `~/wallpapers/` or a valid path, it leverages Pywal to generate a full system color palette and dynamically updates the `blob-dynamic` theme, AGS widgets, and Waybar.
- **`blob_glass [on|off|toggle]`**: A quick toggle to enable or disable window transparency on the fly. - **`blob_glass [on|off|toggle]`**: A quick toggle to enable or disable window transparency on the fly.
- **`blob_boot [path]`**: Safely updates your Plymouth boot splash image (defaults to `branding/boot_flash.png`) and rebuilds the `initramfs` (GRUB compatible via `mkinitcpio`).
- **`blob_wifi`**: A streamlined script to connect to the GMU Eduroam Wi-Fi network using `iwd` and `systemd-resolved` (replaces NetworkManager). - **`blob_wifi`**: A streamlined script to connect to the GMU Eduroam Wi-Fi network using `iwd` and `systemd-resolved` (replaces NetworkManager).
## Installation ## Installation
Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# Default to the branding image if no argument is provided
if [ -z "$1" ]; then
IMAGE_PATH="$HOME/Documents/dotfiles/branding/boot_flash.png"
else
IMAGE_PATH=$(realpath "$1")
fi
if [ ! -f "$IMAGE_PATH" ]; then
echo "Error: File '$IMAGE_PATH' does not exist."
exit 1
fi
echo "Applying boot splash image: $IMAGE_PATH"
echo "This requires sudo privileges."
# Copy the image to the Plymouth theme directory
sudo cp "$IMAGE_PATH" /usr/share/plymouth/themes/omarchy/logo.png
# Ensure the correct permissions
sudo chmod 644 /usr/share/plymouth/themes/omarchy/logo.png
echo "Rebuilding initramfs..."
# Exclusively use mkinitcpio for GRUB compatibility
sudo mkinitcpio -P
echo "Boot splash successfully updated!"
+32 -10
View File
@@ -8,21 +8,43 @@ mkdir -p "$WALLPAPER_DIR"
mkdir -p "$THEME_DIR/backgrounds" mkdir -p "$THEME_DIR/backgrounds"
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: blob_wallpaper <filename-or-path>"
echo "Available wallpapers in $WALLPAPER_DIR:" echo "Available wallpapers in $WALLPAPER_DIR:"
ls -1 "$WALLPAPER_DIR" 2>/dev/null || echo "No wallpapers found."
exit 1
fi
# Check if the argument is a file in the wallpapers directory # Read files into an array
if [ -f "$WALLPAPER_DIR/$1" ]; then mapfile -t files < <(ls -1 "$WALLPAPER_DIR" 2>/dev/null)
IMAGE_PATH=$(realpath "$WALLPAPER_DIR/$1")
# Check if the argument is an absolute or relative path if [ ${#files[@]} -eq 0 ]; then
elif [ -f "$1" ]; then echo "No wallpapers found."
IMAGE_PATH=$(realpath "$1") exit 1
fi
# Print the menu
for i in "${!files[@]}"; do
printf "%3d. %s\n" "$((i+1))" "${files[$i]}"
done
echo ""
read -p "Select a wallpaper number (1-${#files[@]}): " selection
# Validate selection
if ! [[ "$selection" =~ ^[0-9]+$ ]] || [ "$selection" -lt 1 ] || [ "$selection" -gt "${#files[@]}" ]; then
echo "Invalid selection."
exit 1
fi
SELECTED_FILE="${files[$((selection-1))]}"
IMAGE_PATH=$(realpath "$WALLPAPER_DIR/$SELECTED_FILE")
else else
# Check if the argument is a file in the wallpapers directory
if [ -f "$WALLPAPER_DIR/$1" ]; then
IMAGE_PATH=$(realpath "$WALLPAPER_DIR/$1")
# Check if the argument is an absolute or relative path
elif [ -f "$1" ]; then
IMAGE_PATH=$(realpath "$1")
else
echo "Error: File '$1' does not exist in $WALLPAPER_DIR or as a valid path." echo "Error: File '$1' does not exist in $WALLPAPER_DIR or as a valid path."
exit 1 exit 1
fi
fi fi
echo "Extracting colors using Pywal..." echo "Extracting colors using Pywal..."