Jump to content
Sign in to follow this  
ManicDee

"Hooks" for "Lock" action?

Recommended Posts

Is there a way to tie my shell/python/whatever script in with Alfred's "Lock" action?

 

In the immediate instance, I'd like to clear all SSH keys and revoke sudo access when I lock the console. The shell commands to achieve this would be "ssh-add -Dx ; sudo -nK". For my purposes it wouldn't matter whether the script gets run before or after the console is actually locked.

 

Share this post


Link to post

Is there a way to tie my shell/python/whatever script in with Alfred's "Lock" action?

 

In the immediate instance, I'd like to clear all SSH keys and revoke sudo access when I lock the console. The shell commands to achieve this would be "ssh-add -Dx ; sudo -nK". For my purposes it wouldn't matter whether the script gets run before or after the console is actually locked.

 

There isnt a hook from Alfred for that but you can make a workflow that ran your script then executed the lock system command. Then you can disable the built in lock command

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...