Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 80bb43ae13 | |||
| 4143384758 | |||
| 33081f8fa3 |
@@ -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 |
Executable
+28
@@ -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!"
|
||||||
@@ -8,12 +8,33 @@ 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."
|
|
||||||
|
# Read files into an array
|
||||||
|
mapfile -t files < <(ls -1 "$WALLPAPER_DIR" 2>/dev/null)
|
||||||
|
|
||||||
|
if [ ${#files[@]} -eq 0 ]; then
|
||||||
|
echo "No wallpapers found."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
||||||
# Check if the argument is a file in the wallpapers directory
|
# Check if the argument is a file in the wallpapers directory
|
||||||
if [ -f "$WALLPAPER_DIR/$1" ]; then
|
if [ -f "$WALLPAPER_DIR/$1" ]; then
|
||||||
IMAGE_PATH=$(realpath "$WALLPAPER_DIR/$1")
|
IMAGE_PATH=$(realpath "$WALLPAPER_DIR/$1")
|
||||||
@@ -24,6 +45,7 @@ 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..."
|
||||||
wal -i "$IMAGE_PATH" -n -q 2> >(grep -v "deprecated in IMv7" >&2)
|
wal -i "$IMAGE_PATH" -n -q 2> >(grep -v "deprecated in IMv7" >&2)
|
||||||
|
|||||||
Reference in New Issue
Block a user