This program moves the mouse or press a key when it detects that you are away.
It won't do anything if you are using your computer.
Useful to trick your machine to think you are still working with it.
sudo snap install keep-presence
keep-presence
If you don't have the snap
command available, you might be able to find instructions for your distro here.
- Clone the project
- Install
python3
andpip3
. - Execute
pip3 install pynput
python3 keep-presence.py
python3 keep-presence.py --seconds 300
. Default is300
seconds. This define in seconds the allowed idle time. After that time, if mouse wasn't moved, it will move the mouse or press the shift key on the keyboard.python3 keep-presence.py --mode mouse
. Default ismouse
. Modes allowed aremouse
|keyboard
|both
. After away is detected, what action is needed? Move the mouse 1 pixel, press the shift key or both.python3 keep-presence.py --pixels
. Default is1
. Define how many pixels the mouse should move if user is away.