Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Created October 25, 2019 01:38
Show Gist options
  • Save Robdel12/6f24ef253a6539afc2160877c3389362 to your computer and use it in GitHub Desktop.
Save Robdel12/6f24ef253a6539afc2160877c3389362 to your computer and use it in GitHub Desktop.
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