Skip to content

Update README.md #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Install the dependencies like this:

```
sudo apt install python3-gi gir1.2-webkit-3.0 libwebkitgtk-3.0-dev
sudo apt install python3-gi gir1.2-webkit-3.0 libwebkitgtk-3.0-dev i3
pip3 install --user pywebview paho-mqtt validators
```

Expand All @@ -16,13 +16,25 @@ pip3 install --user pywebview paho-mqtt validators
## How to run

- cd into the freshly cloned directory
- copy config.py.sample to config.py
- edit config.py
- Run the program with `./run_mqttwebview.sh`

## Run automatically at boot time

Set i3 as the default window manage (session) in lightdm.
- Set i3 as the default window manage (session) in lightdm:
- You have to go edit lightdm configuration's file:

Add the following line to `/home/$USER/.i3/config`:
```
$ nano /etc/lightdm/lightdm.conf
```

and change that line: `user-session=i3`
This will make i3 as "default" when you login.

- Reboot.
- When booting into i3 for the first time you are asked to generate the i3 config file. Acceppt by hitting Return.
- Add the following line to `/home/$USER/.i3/config`:
```
exec /home/$USER/mqttwebview/run_mqttwebview.sh
```
Expand Down