Create a vault editor
This commit is contained in:
parent
c4a73bde4c
commit
906cf92879
4 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 \
|
||||||
|
|
|
||||||
|
|
@ -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
14
.local/bin/vaulter
Executable 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")'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue