[feature request] detect inactivity and exit
Posted: Mon Mar 06, 2017 2:48 pm
Hi, I have a feature request. Is it possible for gimx to detect when there is no input activity and exit with a specific code.
It will be very useful to automatically shutdown a raspberry after a period of inactivity.
Sthg along these lines:
It will be very useful to automatically shutdown a raspberry after a period of inactivity.
Sthg along these lines:
Code: Select all
#!/bin/bash
/usr/bin/gimx ......
if [ $? -eq 75 ]
then
halt
fi
exit $?