diff --git a/Dockerfile b/Dockerfile index d00b278..0a66bf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN cd /app && git clone https://github.com/novnc/noVNC.git && \ cd /app/noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \ mkdir /data && mkdir /app/.config && ln -s /data /app/.config/Wohnungsbot ADD startup.sh /app/startup.sh +ADD openbox/* /app/.config/openbox/ COPY --from=builder /root/wohnungsbot/release/Wohnungsbot-$WB_VERSION.AppImage /app/Wohnungsbot.AppImage RUN chmod 0755 /app/startup.sh && chown -R bot /app && chown -R bot /data diff --git a/README.md b/README.md index 8d94762..f7cd5d9 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ docker run -td -p 6080:6080 wohnungsbot The interface is then available under http://privateip:6080 +If the bot gets stuck, press ESC to restart it. + ### Advanced use case You can build a specific tag of [Wohnungsbot](https://github.com/neopostmodern/wohnungsbot) by using the following syntax. The data is generally automatically persisted in a docker volume, but that volume can also be named. diff --git a/openbox/autostart b/openbox/autostart new file mode 100644 index 0000000..b35e53d --- /dev/null +++ b/openbox/autostart @@ -0,0 +1,2 @@ +# Programs that will run after Openbox has started +~/Wohnungsbot.AppImage --appimage-extract-and-run --no-sandbox \ No newline at end of file diff --git a/openbox/rc.xml b/openbox/rc.xml new file mode 100644 index 0000000..178edae --- /dev/null +++ b/openbox/rc.xml @@ -0,0 +1,140 @@ + + + + 10 + 20 + + + yes + no + yes + no + 200 + no + + + Smart +
yes
+ Primary + 1 +
+ + Clearlooks + NLC + no + no + + sans + 8 + bold + normal + + + sans + 8 + bold + normal + + + sans + 9 + normal + normal + + + sans + 9 + normal + normal + + + sans + 9 + bold + normal + + + sans + 9 + bold + normal + + + + 1 + 1 + + main + + 0 + + + yes + Nonpixel + Center + + 10 + 10 + + + + 0 + 0 + 0 + 0 + + + TopLeft + 0 + 0 + no + Above + Vertical + no + 300 + 300 + Middle + + + C-g + + + + + Wohnungsbot + + + + + /app/Wohnungsbot.AppImage --appimage-extract-and-run --no-sandbox + + + + + /app/Wohnungsbot.AppImage --appimage-extract-and-run --no-sandbox + + + + + + + 1 + 500 + 0 + false + + + 200 + no + 100 + 400 + yes + no + + + + yes + no + + +
\ No newline at end of file diff --git a/startup.sh b/startup.sh index ea99e3e..48828ad 100644 --- a/startup.sh +++ b/startup.sh @@ -3,10 +3,5 @@ export DISPLAY=:1 Xvfb :1 -screen 0 1600x900x16 & sleep 5 openbox-session& -x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever & -cd /app/noVNC && ln -s vnc_lite.html index.html && ./utils/novnc_proxy --vnc localhost:5900 & - -while true -do - /app/Wohnungsbot.AppImage --appimage-extract-and-run --no-sandbox -done \ No newline at end of file +x11vnc -display :1 -nopw -listen localhost -xkb -forever & +cd /app/noVNC && ln -s vnc_lite.html index.html && ./utils/novnc_proxy --vnc localhost:5900 \ No newline at end of file