1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: qrpaste

This commit is contained in:
2021-09-23 21:25:50 +02:00
parent 4c2a4df663
commit dc90c4c6ab
2 changed files with 7 additions and 0 deletions

View File

@@ -76,6 +76,12 @@ in rec {
fi
'';
qrpaste = pkgs.writers.writeDashBin "qrpaste" ''
file="$(${pkgs.mktemp}/bin/mktemp qrpasteXXX.png --tmpdir)"
${pkgs.qrencode}/bin/qrencode "$(${pkgs.xclip}/bin/xclip -selection clipboard -out)" -o "$file"
${pkgs.sxiv}/bin/sxiv "$file" ; rm "$file"
'';
interdimensional-cable =
let nimaid-github-io = pkgs.fetchFromGitHub {
owner = "nimaid";