Create a vault editor

This commit is contained in:
Ohad Livne 2025-06-04 22:46:14 +03:00
parent c4a73bde4c
commit 906cf92879
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
4 changed files with 26 additions and 0 deletions

14
.local/bin/vaulter Executable file
View file

@ -0,0 +1,14 @@
#! /usr/bin/sh
docker run --rm -ti \
--env WAYLAND_DISPLAY \
--env XDG_RUNTIME_DIR=/tmp \
--hostname localhost \
--mount type=bind,source="${XDG_RUNTIME_DIR}"/"${WAYLAND_DISPLAY}",target=/tmp/"${WAYLAND_DISPLAY}" \
--mount type=bind,readonly=true,source="${HOME}"/.keys/vaults,target=/home/user/.age/key \
--mount type=bind,readonly=true,source="${HOME}"/.keys/vaults.pub,target=/home/user/.age/key.pub \
--mount type=bind,source="${HOME}"/Vaults,target=/home/user/Vaults \
--network none \
--privileged=true \
vaulter:latest \
--execute '(set-frame-name "Vault Editor")'