Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-07-26 17:35:49

jt1122
Member
Registered: 2021-03-26
Posts: 130

Run a script when screen gets unlocked

Hi,

I'm using iwlock  as the screenlock app.

Is there a way to check when the screen gets unlocked & then run a bash script?.

Thanks

Offline

#2 2022-07-26 18:20:42

KBar
Moderator
Registered: 2021-11-05
Posts: 540

Re: Run a script when screen gets unlocked

This is not really an Xfce-related question, as iwlock is not part of it. However, if it's implemented as a D-Bus service, then you can monitor its bus name from your script with gdbus monitor and act upon emitted signals. I'd recommend contacting the developers or referring to its documentation. If your package management is APT,

dpkg --listfiles PACKAGE_NAME

should help you determine whether it installs a D-Bus service file in /usr/share/dbus-1.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#3 2022-07-28 15:45:51

jt1122
Member
Registered: 2021-03-26
Posts: 130

Re: Run a script when screen gets unlocked

Thanks.

Offline

Board footer

Powered by FluxBB