Is there a GetLastInputInfo() equivalent that can be used in Linux?
The intention is to detect the last input time (keyboard or mouse) of the user. Am using python to script the program.
Is there a GetLastInputInfo() equivalent that can be used in Linux?
The intention is to detect the last input time (keyboard or mouse) of the user. Am using python to script the program.
XScreenSaverQueryInfo
The idle field specifies the number of milliseconds since the last input was received from the user on any of the input devices. The event-mask field specifies which, if any, screen saver events this client has requested using ScreenSaverSelectInput.