I understand that there are future IPC plans, but these suggestions would allow for some fire-and-forget setups:
wallpaper {
monitor = *
path = ~/Wallpapers/
triggers = SIGHUP, timeout 3600, file_change
}
SIGHUP|SIGUSR1|SIGUSR2 - upon receiving a signal (maybe even have SIGHUP by default and add ExecReload=kill -HUP $MAINPID to systemd service).
timeout s - like timeout = s, just unified in triggers.
file_change [ms] - watch path for changes (new files added/removed, existing files written), cycle to new/written file(s) / away from removed. Optional milliseconds arg to wait on inactivity before doing anything (like if multiple files were copied into dir, do not trigger until everything is settled for some time).
I understand that there are future IPC plans, but these suggestions would allow for some fire-and-forget setups:
SIGHUP|SIGUSR1|SIGUSR2- upon receiving a signal (maybe even haveSIGHUPby default and addExecReload=kill -HUP $MAINPIDto systemd service).timeout s- liketimeout = s, just unified intriggers.file_change [ms]- watchpathfor changes (new files added/removed, existing files written), cycle to new/written file(s) / away from removed. Optional milliseconds arg to wait on inactivity before doing anything (like if multiple files were copied into dir, do not trigger until everything is settled for some time).