forked from carrot69/keep-presence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Keep Presence | ||
|
||
This is a Python tool that allows you to move the mouse or press the shift keyboard key if it detects that you didn't move the mouse in a settled space of time. | ||
|
||
## Installation | ||
|
||
- You need `python3` and `pip3` installed on your computer. | ||
- Execute `pip3 install pynput` | ||
|
||
## Run | ||
|
||
- `python3 keep-presence.py` | ||
|
||
### Command arguments | ||
|
||
- `python3 keep-presence.py --seconds 300`. Default is `300` seconds. This define in seconds the allowed idle time. After that time, if mouse wasn't moved, it will move the mouse 1 pixel or press the shift key on the keyboard. | ||
- `python3 keep-presence.py --mode mouse`. Default is `mouse`. modes allowed are `mouse` | `keyboard` | `both`. After idle is detected, what action is needed? Move the mouse, press the shift key or both. |