Skip to content

Commit

Permalink
- added snap installation to readme
Browse files Browse the repository at this point in the history
- added snapcraft.yaml file
  • Loading branch information
carrot69 committed Apr 20, 2020
1 parent e4f0d39 commit 6e03c25
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
src/
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,31 @@ Useful to trick your machine to think you are still working with it.

[![Demo](https://j.gifs.com/MwA751.gif)](https://github.com/carrot69/keep-presence)

## Installation
## Install it with Snap

- You need `python3` and `pip3` installed on your computer.
```
sudo snap install keep-presence
```

##### Run

```
keep-presence
```

If you don't have the `snap` command available, you might be able to find instructions for your distro [here](https://docs.snapcraft.io/core/install).

## Classical installation

- Clone the project
- Install `python3` and `pip3`.
- Execute `pip3 install pynput`

## Run
##### Run

- `python3 keep-presence.py`
```
python3 keep-presence.py
```

### Command arguments

Expand Down
28 changes: 28 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: keep-presence
version: '1.0.1'
summary: Keep Presence
description: |
Moves the mouse or press a key when it detects you are away.
Useful to trick your computer to think you are still working with it.
grade: stable
confinement: strict
base: core18

parts:
copy-stuff:
plugin: dump
source: ./src
keep-presence:
plugin: python
python-version: python3
source: .
dlib:
plugin: python
python-packages:
- pynput

apps:
keep-presence:
command: python3 $SNAP/keep-presence.py
plugs:
- x11

0 comments on commit 6e03c25

Please sign in to comment.