home: scripts: screenshot: set screenshot directory
This commit is contained in:
parent
dab5048159
commit
a0a7c7f518
1 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,12 @@ in {
|
|||
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
|
||||
};
|
||||
|
||||
"${binPATH}/screenshot".source = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
|
||||
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
|
||||
"${binPATH}/screenshot".source = pkgs.substitute {
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
|
||||
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
|
||||
};
|
||||
replacements = ["--replace" "DIR=\${SCREENSHOT_DIR:=$HOME/Screenshots}" "DIR=$HOME/Pictures/Screenshots"]; # i dont like using an environment variable
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue