From 86c9a4f694311731eeca52c5ffd6100ff1b4dc55 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Wed, 4 Oct 2023 01:54:44 +0500 Subject: [PATCH] i hate the future --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index ebdd3f4..36c1b3a 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,33 @@ services: obviously change the docker.host to your host machines IP. \ and run `podman-compose up -d` or if you wanna live dangerously then you may..: `docker compose up -d` +here is a script that uses podman run command that does exactly the thing above lol +```bash +#!/bin/bash + +# Start socat in the background +socat UNIX-LISTEN:/tmp/xdg-open.socket,fork EXEC:"xargs -n 1 xdg-open" & + +# Run the Podman container +podman run --rm \ + --name 64gram \ + --hostname 64gram \ + -e DISPLAY \ + --device /dev/snd:/dev/snd \ + --device /dev/video0:/dev/video0 \ + -v $HOME/.local/share/64Gram:/root/.local/share/64Gram \ + -v $HOME/Downloads:/root/Downloads \ + -v $HOME/Pictures:/root/Pictures \ + -v $HOME/Documents:/root/Documents \ + -v /usr/share/icons:/usr/share/icons \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ + -v /tmp/xdg-open.socket:/tmp/xdg-open.socket \ + git.shihaam.dev/dockerfiles/64gram + +# Wait for all background processes to finish +wait +``` +im just gonna have this symlinked to `/sbin/telegram-desktop` when the future is today. + + k, thanks, bye.