diff --git a/home/modules/programs/my-sway/default.nix b/home/modules/programs/my-sway/default.nix index ef20587..d5eecfb 100644 --- a/home/modules/programs/my-sway/default.nix +++ b/home/modules/programs/my-sway/default.nix @@ -29,10 +29,18 @@ let in f from; + wayshot = pkgs.unstable.wayshot.overrideAttrs (attrs: { + src = pkgs.fetchFromGitHub { + owner = "waycrate"; + repo = "wayshot"; + rev = "27cf882ed0a90e657c66b73a44cf2327c322864b"; + sha256 = "sha256-sWF5dV22lJfZooFb8p8+hhXqJ2DazVZYFu4k4XFPtu8="; + }; + }); screenshotScript = pkgs.writeScriptBin "screenshot" '' #! ${pkgs.fish}/bin/fish - ${pkgs.grim}/bin/grim -g (${pkgs.slurp}/bin/slurp) - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png + ${wayshot}/bin/wayshot -s (${pkgs.slurp}/bin/slurp -f '%x %y %w %h') --stdout | ${pkgs.wl-clipboard}/bin/wl-copy ''; ignored-devices = [ "Surface_Headphones" ];