Crates.io | dndtrigger |
lib.rs | dndtrigger |
version | 0.1.0 |
source | src |
created_at | 2024-04-03 19:28:30.376002 |
updated_at | 2024-04-03 19:28:30.376002 |
description | A simple cli/service for MacOS to execute scripts when Do Not Disturb is toggled on or off. |
homepage | |
repository | https://github.com/collingray/dndtrigger.git |
max_upload_size | |
id | 1195486 |
size | 36,054 |
A simple cli/service for MacOS to execute scripts when Do Not Disturb is toggled on or off.
# Configure a script to run when Do Not Disturb is enabled
dndtrigger config --on_enable ~/do_something.sh
# Configure a script to run when Do Not Disturb is disabled
dndtrigger config --on_disable ~/do_something_else.sh
# Optionally configure the service to run as a user (default is root)
dndtrigger config --user <username>
# Install and enable the service
dndtrigger enable
# Get the current status of the service
dndtrigger status
# Restart the service
dndtrigger restart
# Disable and uninstall the service
dndtrigger disable
# Run the service in the foreground (not recommended outside of testing purposes)
dndtrigger run
This project is licensed under the terms of the MIT license. See LICENSE for additional details.