wallpaper-rotate auto-starts awww-daemon, eliminates wallpaper flash

This commit is contained in:
Scott Scoble 2026-05-17 00:18:44 -07:00
parent 9275d686f5
commit 59e46f5ebd
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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"