| Crates.io | wait-for-file |
| lib.rs | wait-for-file |
| version | 0.1.0 |
| created_at | 2024-12-31 16:03:38.419401+00 |
| updated_at | 2024-12-31 16:03:38.419401+00 |
| description | GTK4 app that wait for file, start a command, with extra button. |
| homepage | |
| repository | https://github.com/cyrinux/wait-for-file-gtk4 |
| max_upload_size | |
| id | 1500147 |
| size | 40,542 |
A GTK4 application that waits for a file to appear and then executes a command. It provides a simple graphical interface with a progress bar and customizable buttons.
wait-for-file -p <presence_file> -c <command> [-e <extra_command>] [-i <icon>]
-p, --presence-file: The file path to monitor-c, --command: Command to execute when the file appears-e, --extra-command: Optional extra command button (format: "Label:command", default: "Unlock:open-vault 120s")-i, --icon: Optional icon path or icon namewait-for-file -p /tmp/trigger -c "echo 'File found!'" -e "Custom:echo 'Custom action'" -i "system-lock-screen"
The extra command can be specified in two formats:
Label:command - Specifies both the button label and the commandcommand - Uses "Unlock" as the default labelEnsure you have Rust and GTK4 development libraries installed, then:
cargo build --release
MIT