diff --git a/home/hyprland.conf b/home/hyprland.conf index c3d11ac..a63a583 100644 --- a/home/hyprland.conf +++ b/home/hyprland.conf @@ -1,4 +1,3 @@ -wallpaper = ,/home/sscoble/laptop-config/wallpapers/center-cross.png debug { disable_logs = false; } monitor=,preferred,auto,1 @@ -13,7 +12,7 @@ exec-once = dunst exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store exec-once = hypridle -exec-once = awww-daemon && sleep 0.5 && ~/.local/bin/wallpaper-rotate +exec-once = ~/.local/bin/wallpaper-rotate input { kb_layout = us diff --git a/home/wallpaper-rotate.sh b/home/wallpaper-rotate.sh index 04d3e31..ef4d4e8 100755 --- a/home/wallpaper-rotate.sh +++ b/home/wallpaper-rotate.sh @@ -1,7 +1,12 @@ #!/usr/bin/env bash set -o pipefail -# Wallpapers are in the laptop-config repo +# Ensure awww-daemon is running +if ! pgrep -x "awww-daemon" > /dev/null 2>&1; then + awww-daemon & + sleep 0.3 +fi + WALLPAPER_DIR="$HOME/laptop-config/wallpapers" CACHE_FILE="$HOME/.cache/current-wallpaper"