2025-08-23 18:42:54 +02:00
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
2025-08-21 10:31:34 +02:00
|
|
|
screenshotPkg = pkgs.writeShellScriptBin "screenshot" ''
|
|
|
|
|
AREA=$(${lib.getExe pkgs.slurp} -d)
|
2025-08-25 08:07:11 +02:00
|
|
|
${lib.getExe pkgs.grim} -t ppm -g "$AREA" - | ${lib.getExe pkgs.satty} -f - --initial-tool=arrow --early-exit --copy-command=${pkgs.wl-clipboard}/bin/wl-copy --action-on-enter="save-to-clipboard" --disable-notifications
|
2025-08-21 10:31:34 +02:00
|
|
|
'';
|
2025-08-23 18:42:54 +02:00
|
|
|
in {
|
2025-08-21 10:31:34 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
|
screenshotPkg
|
|
|
|
|
];
|
2025-08-23 18:42:54 +02:00
|
|
|
}
|