We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A. Add event.system.* commands:
event.system.*
event.system.startup_done
event.download.resumed
event.system.shutdown
B. Usage examples:
# COMMAND/EVENT: Return startup time (can be used to calculate uptime) method.insert = system.startup_time, value, 0 method.set_key = event.system.startup_done, !!set_startup_time, {(branch, ((not,((system.startup_time)))), ((system.startup_time.set, (system.time))) )} # Display startup time at startup method.set_key = event.system.startup_done, ~log, ((print, "Startup time: ", ((system.startup_time)) )) # Prevent command to fire up on 'event.view.*' event during startup method.set_key = event.view.show, ~print_name, {(branch, ((system.startup_time)), ((print, ((ui.current_view)))) )} # COMMAND/EVENT: Return shutdown time method.insert = system.shutdown_time, value|private, 0 method.set_key = event.system.shutdown, !!set_shutdown_time, {(branch, ((not,((system.shutdown_time)))), ((system.shutdown_time.set, (system.time))) )} # Display shutdown time at shutdown method.set_key = event.system.shutdown, ~log, ((print, "Shutdown time: ", ((system.shutdown_time)) )) # Prevent command to fire up on 'event.download.paused/closed' event during shutdown method.set_key = event.download.paused, ~print_name, {(branch, ((not,((system.shutdown_time)))), ((print, ((d.name)))) )}
The text was updated successfully, but these errors were encountered:
Add 'event.system.startup_done/shutdown' commands/events (Closes #24)
74435f6
No branches or pull requests
A. Add
event.system.*
commands:event.system.startup_done
: triggered when startup is doneevent.download.resumed
starts after this event)event.system.shutdown
: triggered when shutdown is startedB. Usage examples:
The text was updated successfully, but these errors were encountered: