Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
events:
enabled: true
subscriptions:
- command: node ~/scripts/turn-off-printer.js
event: PrintDone
type: system
system:
actions:
- name: Turn off printer
action: turnoff
command: node ~/scripts/turn-off-printer.js
confirm: You are about to turn off the printer.
- name: Turn on printer
action: turnon
command: node ~/scripts/turn-on-printer.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment