home/pkgs/qrclip/default.nix

6 lines
142 B
Nix

{ pkgs }:
pkgs.writeShellScriptBin "qrclip" ''
set -eo pipefail
${pkgs.pngpaste}/bin/pngpaste - | ${pkgs.zbar}/bin/zbarimg --raw -q1 -
''