Skip to main content
3 of 3
edited title
intika
  • 15.1k
  • 8
  • 51
  • 85

How to run a script on screen lock/unlock?

I'd like to run a script if the Gnome session is locked and unlocked.
Is there a way that I can intercept this and perform certain actions when the desktop is locked or unlocked?

Naftuli Kay
  • 41.5k
  • 94
  • 246
  • 322