~anjan/sxmo-docs-stable

b64498b208dcefd66318b6930fab200dcaa29e18 — Stacy Harper 6 months ago b5f8760
Add a part about is_idle and can_suspend new hooks
1 files changed, 14 insertions(+), 0 deletions(-)

M USERGUIDE.md
M USERGUIDE.md => USERGUIDE.md +14 -0
@@ 497,6 497,20 @@ refer to [the changelog](./CHANGELOG.md).
      </td>
    </tr>
    <tr>
      <td>$XDG_CONFIG_HOME/sxmo/hooks/is_idle [^1]</td>
      <td>
	<p>Check script run before going deeper in screen lock levels</p>
	<p>This script must return a non zero exit code if the phone cannot lock deeper</p>
      </td>
    </tr>
    <tr>
      <td>$XDG_CONFIG_HOME/sxmo/hooks/can_suspend [^1]</td>
      <td>
	<p>Check script run before suspending the system</p>
	<p>This script must return a non zero exit code if the phone cannot suspend now</p>
      </td>
    </tr>
    <tr>
      <td>$XDG_CONFIG_HOME/sxmo/hooks/apps</td>
      <td>Executable script to run when display of the app menu is requested, outputs to stdout and allows you to override the default app
      menu (see sxmo_appmenu.sh)</td>