Adding a wrapper around sxmo_screenlock, with lock/unlock hooks. Allow setting a target state for sxmo_screenlock, and cleanup on sigterm. Added lock/suspend options to the power menu.
Should be applied after my prior patches from today.master
parent
b513949b95
commit
113f756eb1
3 changed files with 56 additions and 3 deletions
@ -0,0 +1,10 @@ |
||||
#!/usr/bin/env sh |
||||
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/lock" ]; then |
||||
"$XDG_CONFIG_HOME/sxmo/hooks/lock" |
||||
fi |
||||
pkill -9 lisgd |
||||
sxmo_screenlock "$@" |
||||
lisgd & |
||||
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/unlock" ]; then |
||||
"$XDG_CONFIG_HOME/sxmo/hooks/unlock" |
||||
fi |
Loading…
Reference in new issue