3

Have siblings who like to "play" with my laptop by waking it from suspension and then typing random keys on the keyboard into the password field. Afterwards, they always deny it. I plan to install motion and only have it run while the computer is locked. After the computer is unlocked, the process should be killed. How would I go about launching motion when CTRL + ALT + L is pressed and kill motion when the correct password is entered?

Danatela
  • 13,243
  • 11
  • 45
  • 72
KI4JGT
  • 1,820

1 Answers1

1

I like your idea :)
But it seems like a duplicate: Run script on screen lock/unlock (U&L Stack)
If you install motion correctly as a service, you should run service motion start at the lock-event and service motion stop at the unlock-event

ExploWare
  • 146
  • 8