[feature request] detect inactivity and exit

Talk about anything concerning the source code.
Post Reply
jackherb
Posts: 6
Joined: Sun Mar 05, 2017 6:15 am

[feature request] detect inactivity and exit

Post by jackherb » 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:

Code: Select all

#!/bin/bash
/usr/bin/gimx ......
if [ $? -eq 75 ]
then
   halt
fi
exit $?

User avatar
Matlo
Posts: 4239
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: [feature request] detect inactivity and exit

Post by Matlo » Mon Mar 06, 2017 3:32 pm

Hi,
I moved the topic to the dev section.
The best way to make a feature request is to open an issue here: https://github.com/matlo/GIMX/issues
Donate Shop

jackherb
Posts: 6
Joined: Sun Mar 05, 2017 6:15 am

Re: [feature request] detect inactivity and exit

Post by jackherb » Fri Mar 10, 2017 12:19 am

Done.

Post Reply