Add opt-in GUI and audio support
This commit is contained in:
21
README.md
21
README.md
@@ -41,17 +41,38 @@ cp ~/claudio/.claudio ~/projects/myapp/
|
||||
```
|
||||
|
||||
```bash
|
||||
GUI=1
|
||||
AUDIO=1
|
||||
MOUNTS=("$HOME/.gitconfig:/home/claude/.gitconfig:ro" "/data/shared")
|
||||
PODMAN_ARGS=(-e GITHUB_TOKEN -p 3000:3000)
|
||||
CLAUDE_ARGS=(--model opus)
|
||||
```
|
||||
|
||||
- `GUI=1`: graphical apps open on your desktop (see below).
|
||||
- `AUDIO=1`: apps can play sound (see below).
|
||||
- `MOUNTS`: extra `-v` mounts. A bare path is mounted at the same path. Add `:ro` for read-only.
|
||||
- `PODMAN_ARGS`: extra `podman run` options.
|
||||
- `CLAUDE_ARGS`: default arguments for `claude`.
|
||||
|
||||
`.claudio` is sourced as bash, so only use ones you trust.
|
||||
|
||||
## Graphical apps and sound
|
||||
|
||||
Both are off by default and work by sharing a single socket from your session.
|
||||
|
||||
- `GUI=1` shares your Wayland socket and the GPU (`/dev/dri`), and makes
|
||||
GTK, Qt, SDL and Electron apps use Wayland. It requires a Wayland session
|
||||
(there is no X11 support). How isolated the container is depends on your
|
||||
compositor: on KDE Plasma it **can type and click into other apps, record
|
||||
the screen, read the clipboard and control all windows**, because KWin
|
||||
offers those interfaces to every app.
|
||||
- `AUDIO=1` shares the PulseAudio socket (`pulse/native`, also provided by
|
||||
PipeWire). It works both ways: anything in the container can also **record
|
||||
from your microphone**.
|
||||
|
||||
The image only ships OpenGL drivers, a font and the PulseAudio client. Add the
|
||||
apps you want to run (and their libraries) to the `apt-get install` line.
|
||||
|
||||
## State
|
||||
|
||||
The container's home (`/home/claude`) lives in the podman volume `claudio-home`.
|
||||
|
||||
Reference in New Issue
Block a user