A simple daemon to debounce command executions — useful when you want to delay and group repeated command triggers (e.g., in response to frequent file changes or events).
- Daemon + client architecture
- Debounce logic based on customizable timeout
- Optional grouping via IDs
- Custom working directory support
git clone [email protected]:fabienjuif/debouncerd.git
cargo install --path ./debouncerdYou can find a custom template here.
debouncerdA debounce wrapper that runs a command with a timeout and optional settings
Usage: debouncerctl [OPTIONS] <TIMEOUT> <CMD>
Arguments:
<TIMEOUT> Debounce timeout in milliseconds
<CMD> Command to execute
Options:
--id <ID> Optional identifier for the debounce group (useful for distinguishing runs)
--pwd <PWD> Optional present working directory to run the command from [default: /home/fabien/perso/dbus-debounce]
-b, --background Optional flag to run the command in the background (in the daemon)
-h, --help Print help
-V, --version Print version
debouncerctl 500 "echo 'Hello, world!'"This ensures that if the same command is triggered multiple times within 500ms, it will only be executed once.