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

View file

@ -113,6 +113,14 @@
(use-package org-contacts (use-package org-contacts
:after org-contrib) :after org-contrib)
(use-package age
:custom
(age-program "rage")
(age-default-identity "~/.age/key")
(age-default-recipient "~/.age/key.pub")
:config
(age-file-enable))
;; EPUB reader ;; EPUB reader
(use-package nov (use-package nov
:init :init

View file

@ -1,6 +1,7 @@
#! /usr/bin/sh #! /usr/bin/sh
DEB_PKGS="\ DEB_PKGS="\
age \
alsa-utils \ alsa-utils \
audacity \ audacity \
avahi-daemon \ avahi-daemon \

View file

@ -85,6 +85,9 @@ input type:touchpad {
# Start your launcher # Start your launcher
bindsym $launch+space exec $menu bindsym $launch+space exec $menu
# Start an Emacs instance for vaults
bindsym $launch+v exec vaulter
# Drag floating windows by holding down Super and left mouse button. # Drag floating windows by holding down Super and left mouse button.
# Resize them with right mouse button + Super. # Resize them with right mouse button + Super.
# Despite the name, also works for non-floating windows. # Despite the name, also works for non-floating windows.

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")'