mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(klem): notify on success
This commit is contained in:
@@ -40,6 +40,8 @@
|
|||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
pkgs.writers.writeDashBin "klem" ''
|
pkgs.writers.writeDashBin "klem" ''
|
||||||
|
set -efu
|
||||||
|
|
||||||
${pkgs.xclip}/bin/xclip -selection ${cfg.selection} -out \
|
${pkgs.xclip}/bin/xclip -selection ${cfg.selection} -out \
|
||||||
| case $(echo "${
|
| case $(echo "${
|
||||||
lib.concatStringsSep "\n" (lib.attrNames cfg.scripts)
|
lib.concatStringsSep "\n" (lib.attrNames cfg.scripts)
|
||||||
@@ -49,4 +51,6 @@ in
|
|||||||
esac \
|
esac \
|
||||||
| tr -d '\r\n' \
|
| tr -d '\r\n' \
|
||||||
| ${pkgs.xclip}/bin/xclip -selection ${cfg.selection} -in
|
| ${pkgs.xclip}/bin/xclip -selection ${cfg.selection} -in
|
||||||
|
|
||||||
|
${pkgs.libnotify}/bin/notify-send --app-name="klem" "Result copied to clipboard."
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user