This repository has no description
1{
2 writeScriptBin,
3 bash,
4 coreutils,
5 grim,
6 imagemagick,
7 libnotify,
8 slurp,
9 wl-clipboard,
10 xdg-utils,
11 ...
12}:
13
14writeScriptBin "colorgrab" (
15 builtins.replaceStrings
16 [
17 "#!/bin/sh"
18 "mkdir"
19 "printf"
20 "grim"
21 "slurp"
22 "convert"
23 "wl-copy"
24 "xdg-open "
25 "notify-send"
26 ]
27 [
28 "#!${bash}/bin/sh"
29 "${coreutils}/bin/mkdir"
30 "${coreutils}/bin/printf"
31 "${grim}/bin/grim"
32 "${slurp}/bin/slurp"
33 "${imagemagick}/bin/convert"
34 "${wl-clipboard}/bin/wl-copy"
35 "${xdg-utils}/bin/xdg-open "
36 "${libnotify}/bin/notify-send"
37 ]
38 (builtins.readFile ../scritps/colorgrab)
39)