Skip to content

Interval should align with actual time. #486

@iguanajuice

Description

@iguanajuice

If you set an interval of 5 seconds, it should run every 5 seconds on the clock.

An example config like this:

[date]
command=date
interval=5

might currently output like so:

Sun Jul 28 01:18:07 PM EDT 2024
Sun Jul 28 01:18:12 PM EDT 2024
Sun Jul 28 01:18:17 PM EDT 2024
...

instead of like this:

Sun Jul 28 01:18:05 PM EDT 2024
Sun Jul 28 01:18:10 PM EDT 2024
Sun Jul 28 01:18:15 PM EDT 2024
...

This is especially desired for minutely and hourly intervals; with i3blocks's current behaviour, setting a command to run every hour won’t run when the hour actually changes on the clock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions