fix: autoclose satty after copy

This commit is contained in:
Nickolaj Jepsen 2025-08-25 08:07:11 +02:00
parent 17b1a6ccf2
commit 5890ba2ddd

View file

@ -5,7 +5,7 @@
}: let }: let
screenshotPkg = pkgs.writeShellScriptBin "screenshot" '' screenshotPkg = pkgs.writeShellScriptBin "screenshot" ''
AREA=$(${lib.getExe pkgs.slurp} -d) AREA=$(${lib.getExe pkgs.slurp} -d)
${lib.getExe pkgs.grim} -t ppm -g "$AREA" - | ${lib.getExe pkgs.satty} -f - --initial-tool=arrow --copy-command=${pkgs.wl-clipboard}/bin/wl-copy --action-on-enter="save-to-clipboard" --disable-notifications ${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
''; '';
in { in {
environment.systemPackages = [ environment.systemPackages = [