Skip to content

[Feature Request] cycle triggers #340

@Vladimir-csp

Description

@Vladimir-csp

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions