mirror of
https://github.com/wlcx/home.git
synced 2026-09-09 17:58:22 +01:00
Add qrclip convenience script
This commit is contained in:
+3
-2
@@ -1,3 +1,4 @@
|
||||
# TODO: auto import everything
|
||||
{ pkgs }:
|
||||
{ }
|
||||
{ pkgs }: {
|
||||
qrclip = pkgs.callPackage ./qrclip { };
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{ pkgs }:
|
||||
pkgs.writeShellScriptBin "qrclip" ''
|
||||
set -eo pipefail
|
||||
${pkgs.pngpaste}/bin/pngpaste - | ${pkgs.zbar}/bin/zbarimg --raw -q1 -
|
||||
''
|
||||
Reference in New Issue
Block a user