From c8f619cc5448ef1b7df7f4ffa5444fab1815ac6e Mon Sep 17 00:00:00 2001 From: coon42 Date: Mon, 19 Jun 2017 20:15:34 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f9aac61..8635453 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ - Install the dependencies like this: ``` -sudo apt install python3-gi gir1.2-webkit-3.0 libwebkitgtk-3.0-dev -pip3 install --user pywebview paho-mqtt validators +sudo apt install python3-gi gir1.2-webkit-3.0 libwebkitgtk-3.0-dev i3 +pip3 install --user pywebview paho-mqtt validators config ``` - Then clone the git repo: `https://github.com/c-base/mqttwebview.git` @@ -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 ``` From 92ca6e9d87ead06d9f9d2cfd7a90264fc0ff0165 Mon Sep 17 00:00:00 2001 From: coon42 Date: Mon, 19 Jun 2017 20:17:12 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8635453..70c9e3a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ``` sudo apt install python3-gi gir1.2-webkit-3.0 libwebkitgtk-3.0-dev i3 -pip3 install --user pywebview paho-mqtt validators config +pip3 install --user pywebview paho-mqtt validators ``` - Then clone the git repo: `https://github.com/c-base/mqttwebview.git`