nix-config/packages/move-firefox-screenshots.nix
Oliver Davies 5341b761ad
All checks were successful
/ check (push) Successful in 1m40s
Combine scripts and custom packages
2025-07-10 22:51:55 +01:00

15 lines
372 B
Nix
Executable file

{ pkgs }:
pkgs.writeShellApplication {
name = "move-firefox-screenshots";
runtimeInputs = with pkgs; [ findutils ];
text = ''
original_directory="''${HOME}/Downloads"
new_directory="''${HOME}/Pictures/Screenshots"
find "''${original_directory}" -mindepth 1 -maxdepth 1 -type f -name "Screenshot *" \
-exec mv {} "''${new_directory}" \;
'';
}