From 97ae9ec0bf4908aeb3fd70698357793461e271bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 20 Mar 2023 12:24:06 +0100 Subject: [PATCH] feat(klem): add emojai script --- configs/i3.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/i3.nix b/configs/i3.nix index cc5a2fe..62f5be8 100644 --- a/configs/i3.nix +++ b/configs/i3.nix @@ -47,6 +47,9 @@ ocr = pkgs.writers.writeDash "ocr" '' ${pkgs.tesseract4}/bin/tesseract -l eng+deu - stdout ''; + emojai = pkgs.writers.writeDash "emojai" '' + ${pkgs.curl}/bin/curl https://www.emojai.app/api/generate -X POST -H 'Content-Type: application/json' --data-raw "$(${pkgs.jq}/bin/jq -sR '{emoji:.}')" | ${pkgs.jq}/bin/jq -r .result + ''; }; };