diff --git a/README.md b/README.md index c8949c1..87e8a02 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,9 @@ services: ## Legacy and Beta Apps -⚠️ Beeper has removed the download links for v3 as far as I can tell. The last version of this image that is compatible with `USE_LEGACY_BIN` is [b16f940](https://github.com/zachatrocity/docker-beeper/pkgs/container/docker-beeper/393086004?tag=sha-b16f940b40f8e2f04d9ecd587d780d407b385ca2) +⚠️ The last version of this image that is compatible with `USE_LEGACY_BIN` and v3 of beeper is [b16f940](https://github.com/zachatrocity/docker-beeper/pkgs/container/docker-beeper/393086004?tag=sha-b16f940b40f8e2f04d9ecd587d780d407b385ca2) + + This Docker image supports both the legacy and beta (v4) versions of Beeper. You can switch between them using the `USE_LEGACY_BIN` environment variable in your docker-compose file: @@ -199,19 +201,17 @@ services: beeper: image: ghcr.io/zachatrocity/docker-beeper:latest container_name: beeper - security_opt: - - seccomp:unconfined #optional environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC + - DARK_MODE=true #optional + - USE_LEGACY_BIN=false volumes: - - /path/to/config:/config + - ./config:/config ports: - - 3000:3000 - - 3001:3001 - devices: - - /dev/dri:/dev/dri #optional + - 3003:3000 + - 3005:3001 shm_size: "1gb" restart: unless-stopped ``` @@ -221,7 +221,6 @@ services: ```bash docker run -d \ --name=beeper \ - --security-opt seccomp=unconfined `#optional` \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ diff --git a/compose.yml b/compose.yml index 238b203..65ed65e 100644 --- a/compose.yml +++ b/compose.yml @@ -2,19 +2,16 @@ services: beeper: build: . container_name: beeper - security_opt: - - seccomp:unconfined environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC + - DARK_MODE=true #optional - USE_LEGACY_BIN=false volumes: - ./config:/config ports: - 3003:3000 - 3005:3001 - devices: - - /dev/dri:/dev/dri shm_size: "1gb" restart: unless-stopped \ No newline at end of file diff --git a/root/defaults/autostart b/root/defaults/autostart index 74f552c..741c71b 100644 --- a/root/defaults/autostart +++ b/root/defaults/autostart @@ -1,5 +1,14 @@ -if [ "$(whoami)" != "abc" ]; then - sudo lsiown -R $(id -u):$(id -u) \ - /opt/beeper/beepertexts +# Fix permissions +sudo lsiown -R $(id -u):$(id -u) /opt/beeper + +# Enable dark mode if defined +if [ "${DARK_MODE}" = "true" ] && [ ! -f "$HOME/.config/gtk-3.0/settings.ini" ]; then + mkdir -p $HOME/.config/gtk-3.0 + echo '[Settings]' > $HOME/.config/gtk-3.0/settings.ini + echo 'gtk-application-prefer-dark-theme=1' >> $HOME/.config/gtk-3.0/settings.ini +elif [ "${DARK_MODE}" != "true" ] && [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then + rm -f "$HOME/.config/gtk-3.0/settings.ini" fi -beeper + +export APPDIR='/opt/beeper' +/opt/beeper/AppRun --no-sandbox --disable-gpu \ No newline at end of file