From 8a081737d32ab219ffe41025ca2a8e1b1a248d3f Mon Sep 17 00:00:00 2001 From: SirBlobby Date: Sun, 19 Apr 2026 22:11:50 -0400 Subject: [PATCH] Add blob_wallpaper script to apply custom backgrounds --- scripts/blob_wallpaper.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/blob_wallpaper.sh diff --git a/scripts/blob_wallpaper.sh b/scripts/blob_wallpaper.sh new file mode 100755 index 0000000..338be65 --- /dev/null +++ b/scripts/blob_wallpaper.sh @@ -0,0 +1,21 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo "Usage: blob_wallpaper " + exit 1 +fi + +IMAGE_PATH=$(realpath "$1") + +if [ ! -f "$IMAGE_PATH" ]; then + echo "Error: File '$IMAGE_PATH' does not exist." + exit 1 +fi + +# Point the Omarchy background link to your custom image +ln -nsf "$IMAGE_PATH" "$HOME/.config/omarchy/current/background" + +# Relaunch swaybg smoothly +pkill -x swaybg +setsid uwsm-app -- swaybg -i "$HOME/.config/omarchy/current/background" -m fill >/dev/null 2>&1 & + +echo "Wallpaper updated to: $IMAGE_PATH" \ No newline at end of file