From 0a92d58d00d779576c76a38d3f25152f510fe51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 20 Mar 2023 12:23:36 +0100 Subject: [PATCH] feat(klem): notify on success --- packages/klem.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/klem.nix b/packages/klem.nix index af7ce5a..003f01a 100644 --- a/packages/klem.nix +++ b/packages/klem.nix @@ -40,6 +40,8 @@ ''; in pkgs.writers.writeDashBin "klem" '' + set -efu + ${pkgs.xclip}/bin/xclip -selection ${cfg.selection} -out \ | case $(echo "${ lib.concatStringsSep "\n" (lib.attrNames cfg.scripts) @@ -49,4 +51,6 @@ in esac \ | tr -d '\r\n' \ | ${pkgs.xclip}/bin/xclip -selection ${cfg.selection} -in + + ${pkgs.libnotify}/bin/notify-send --app-name="klem" "Result copied to clipboard." ''