I'd like to run a screen 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?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
gnome-screensaver emits some signals on dbus when something happens. Here the documentation (with some examples). You could write a scripts that runs:
and that does what you need anytime Here a bash command to do what you need:
Just replace |
|||||||
|