dotfiles/.local/bin/vaulter
2025-06-04 22:46:46 +03:00

14 lines
616 B
Bash
Executable file

#! /usr/bin/sh
podman run --rm -ti \
--env WAYLAND_DISPLAY \
--env XDG_RUNTIME_DIR=/tmp \
--hostname localhost \
--userns=keep-id \
--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 \
vaulter:latest \
--execute '(set-frame-name "Vault Editor")'