Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Neurone authored Aug 30, 2020
1 parent b0f89f5 commit 53412ab
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,48 @@ Script tested on version 2.0.x and 2.1.x

## Automatically change your poweroff and suspend screens every 5 minutes

1. Connect to your reMarkable via ssh and copy this repo into your home folder, i.e. I put all artifacts under `/home/root/customization`
### Installation script

2. Create dedicated folders for your scripts and images
_Soon :)_

### Manual installation

1. Connect to your reMarkable via ssh and copy this repo into a temp folder i.e. `/home/root/temp/reMarkable-1.0.0`

2. From the temp folder, create dedicated folders for your scripts and images
```bash
$ cd /home/root/temp/reMarkable-1.0.0
$ mkdir -p /usr/share/remarkable/scripts
$ mkdir -p /home/root/customization/images/poweroff
$ mkdir -p /home/root/customization/images/poweroff
$ mkdir -p /home/root/customization/images/suspended
```
3. Copy the script into the correct folder and set it executable
```bash
$ cp set-random-screens.sh /usr/share/remarkable/scripts/
$ cp scripts/random-screens/set-random-screens.sh /usr/share/remarkable/scripts/
$ chmod +x /usr/share/remarkable/scripts/set-random-screens.sh
```

4. Copy some images under dedicated folders
```bash
$ cp ../../images/poweroff/* /home/root/customization/images/poweroff
$ cp ../../images/suspended/* /home/root/customization/images/suspended
$ cp images/poweroff/* /home/root/customization/images/poweroff
$ cp images/suspended/* /home/root/customization/images/suspended
```
Name of the files is not important: every image in the folder will be elegible to be selected randomly by the script. You can find very good example in this repo.
_Note: I found them on Facebook but I can't remember the author anymore, I'm sorry. If you find him/her please PR this repo._

5. Copy service and timer in the correct folder
```bash
cp random-screens.service /usr/lib/systemd/user/random-screens.service
cp random-screens.timer /usr/lib/systemd/user/random-screens.timer
cp scripts/random-screens/random-screens.service /usr/lib/systemd/user/random-screens.service
cp scripts/random-screens/random-screens.timer /usr/lib/systemd/user/random-screens.timer
```
You can now delete your temp folder.

4) Enable service and timer
```bash
$ systemctl enable /usr/lib/systemd/user/random-screens.timer
$ systemctl enable /usr/lib/systemd/user/random-screens.service
```

5) Restart your reMarkable

6) You should now see one of your custom suspend and poweroff image in place. To do some troubleshooting, you can use these commands:
Expand Down

0 comments on commit 53412ab

Please sign in to comment.