From 358690aa87b756a4a6848942f9b63c8cb5cc5e02 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Mon, 19 Jan 2026 08:06:23 -0500 Subject: Added check for SDDM active On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/sddm_wallpaper.sh --- config/hypr/scripts/sddm_wallpaper.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/sddm_wallpaper.sh b/config/hypr/scripts/sddm_wallpaper.sh index b83f800a..17640f40 100755 --- a/config/hypr/scripts/sddm_wallpaper.sh +++ b/config/hypr/scripts/sddm_wallpaper.sh @@ -38,6 +38,17 @@ elif [[ "$1" == "--effects" ]]; then mode="effects" fi +# Abort if SDDM is not running (avoid errors on non-SDDM systems) +if command -v systemctl >/dev/null 2>&1; then + if ! systemctl is-active --quiet sddm; then + notify-send -i "$iDIR/error.png" "SDDM" "SDDM is not running. Skipping SDDM wallpaper update." + exit 0 + fi +elif ! pidof sddm >/dev/null 2>&1; then + notify-send -i "$iDIR/error.png" "SDDM" "SDDM is not running. Skipping SDDM wallpaper update." + exit 0 +fi + # Extract colors from rofi wallust config extract_color() { -- cgit v1.2.3