Skip to content

Commit

Permalink
[bin/qrencode-keys] add margin for printing
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Jan 7, 2025
1 parent 85e7f1e commit def0d8b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/bin/qrencode-keys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env nix-shell
#! nix-shell -i zsh -p qrencode imagemagick
#! nix-shell -i zsh -p zsh qrencode imagemagick

SSH_DIR=$HOME/.ssh
QR_DIR=$(mktemp -d --tmpdir="$SSH_DIR")
Expand All @@ -20,9 +20,15 @@ done

montage -label %f \
-tile 3x \
-page a4 \
-geometry 500x500 \
-mode frame \
-pointsize 20 \
"$QR_DIR"/*.svg \
miff:- \
| \
magick - \
-page a4 \
-bordercolor white -border 100 \
"$SSH_DIR"/keys-as-qr-codes.pdf


0 comments on commit def0d8b

Please sign in to comment.