I am trying to run a program when the Unity lock screen is present but I cannot figure what or how I can listen for this event.
Asked
Active
Viewed 46 times
EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: https://askubuntu.com/questions/505681/unity-how-to-detect-if-the-screen-is-locked?rq=1
– sbergeron Mar 20 '18 at 18:07