Skip to content

Trigger Selector #14

@maltfield

Description

@maltfield

This ticket is to track the development of a new feature permitting the user to choose the trigger that's executed.

Currently there is only one hard-coded trigger supported: lockscreen. When this feature is complete, there will be 1-3 triggers supported:

  1. Lockscreen
  2. Soft Shutdown
  3. Hard Shutdown (if implementable on the platform)

To achieve this, the following needs to be added

  1. Create a configuration file in the DATA_DIR to persist settings between runs
  2. In the CLI, implement a --list-triggers option allowing the user to list all available triggers on their platform
  3. In the CLI, implement a -t = --trigger option allowing the user to specify the trigger to be used at runtime. This is to be used in combination with the --arm argument
  4. In the CLI, implement a --set-default-trigger option, which updates the config file's default trigger to be used after arming (affects both the CLI and the GUI).
  5. In the GUI, add a "Settings" screen and cooresponding button to the navigation drawer to access it
  6. In the GUI, add a drop-down menu to select from the available triggers to the "Settings" screen, which updates the config file's default trigger to be used after arming (affects both the CLI and the GUI)

Note: this ticket should not attempt to handle auxiliary triggers (ie: self-destruct triggers or other custom triggers). This will be added later.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions