diff --git a/.config/emacs/init.el b/.config/emacs/init.el index b2bf917..2278aef 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -113,6 +113,14 @@ (use-package org-contacts :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 (use-package nov :init diff --git a/.config/setup/01-install-packages.sh b/.config/setup/01-install-packages.sh index a12e815..6244c2a 100755 --- a/.config/setup/01-install-packages.sh +++ b/.config/setup/01-install-packages.sh @@ -1,6 +1,7 @@ #! /usr/bin/sh DEB_PKGS="\ +age \ alsa-utils \ audacity \ avahi-daemon \ diff --git a/.config/sway/config b/.config/sway/config index 3bd6ae4..c7289e7 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -85,6 +85,9 @@ input type:touchpad { # Start your launcher 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. # Resize them with right mouse button + Super. # Despite the name, also works for non-floating windows. diff --git a/.local/bin/vaulter b/.local/bin/vaulter new file mode 100755 index 0000000..957f8cb --- /dev/null +++ b/.local/bin/vaulter @@ -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")'