From 80c39ff0495ac6e76ac26aa813fbe664ae2e9f1b Mon Sep 17 00:00:00 2001 From: Martin Potier Date: Mon, 3 Jun 2019 09:11:50 +0300 Subject: [PATCH] Add notification to copy --- pkgs/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/default.nix b/pkgs/default.nix index 19f2434..1cf89c4 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -38,11 +38,12 @@ self: super: copy = super.writeScriptBin "copy" '' function clean() { sleep 10 - echo cleaning + ${super.libnotify}/bin/notify-send -u low 'Clipboard cleaned' ${super.xclip}/bin/xclip -sel clipboard -i /dev/null } ${super.xclip}/bin/xclip -sel clipboard < /dev/stdin + ${super.libnotify}/bin/notify-send -u low -t 10000 'Clipboard set' clean & '';