I am wondering if there is any way to detect system wide events under linux such as:
- user un/locked session
- user logs in/out
- machine sent to suspend
- screensaver goes on
- and the monitor switches off due inactivity
I need this for a Qt project where i programmatically react to such events, but i am uncertain how and where to start. Maybe there is an api that i dont know yet.
Any hints? I would appreciate any help!