This script notifies the user using SimplePush when the computer is idle.
Note: This repo is for internal use only. No support will be provided, use at your own risk!!. Also, this script only works on Linux systems with Nvidia GPU.
Install SimplePush on your phone. [Android] [iOS]
Take note of your API key.
-
First install the python package. Either
-
Clone and install in develop mode
git clone https://github.com/yewzijian/idle_notifier.git pip install --upgrade -e ./idle_notifier
-
or directly install from this git repository
pip install --upgrade git+https://github.com/yewzijian/idle_notifier.git
-
Then run the setup tool:
idle_notifier_setup
Follow the instructions and enter the machine name and api key when prompted. Once installed, you should receive a notification on your phone.
-
Run the uninstall tool:
idle_notifier_remove
-
Then optionally remove the python package
pip uninstall idle_notifier
-
By default, the script checks CPU/GPU usage every minute. If it falls below both thresholds of 10% CPU and GPU usage for over 30min, a notification will be sent. Currently there is no functionality to easily configure these parameters, but they can be edited manually in
config.json
. -
You may check the status of the idle_notifier with the following command:
systemctl status idle_notifier