diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-19 08:06:23 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-19 08:06:23 -0500 |
| commit | 358690aa87b756a4a6848942f9b63c8cb5cc5e02 (patch) | |
| tree | 5df8956093a5ca5171b181a9bea4f7a0225e0c7d | |
| parent | 5aedcf78f579e7aef6d7309d0b1ea5b4c94f2ca0 (diff) | |
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
| -rwxr-xr-x | config/hypr/scripts/sddm_wallpaper.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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() { |
