-
-
Notifications
You must be signed in to change notification settings - Fork 143
Scripting
Mátyás Mustoha edited this page Jul 15, 2017
·
4 revisions
Pegasus supports calling external scripts and executables on certain program events.
First, create a new directory called scripts inside the config directory:
- Linux:
~/.config/pegasus-frontendor/etc/xdg/pegasus-frontend - Windows:
C:\Users\<User Name>\AppData\Roaming\pegasus-frontend
Inside the scripts folder, create a new directory for the kind of event you want to script:
| Name | When |
|---|---|
quit |
on program quit |
reboot |
on system reboot (also calls quit first) |
shutdown |
on system shutdown (also calls quit first) |
config |
on the change of any configuration option |
controls |
on change of the control settings (also calls config first) |
settings |
on change of the regular (non-control) settings (also calls config first) |
Put your executable scripts or binaries into these new directories. They will be called in alphabetic order when the event happens.
Want to contribute? Open a pull request in the wiki repository, or click here for more details.