Use wayshot, it's fine but doesn't support multiple monitors
This commit is contained in:
parent
21c62cd1e1
commit
6f9ce8e318
|
@ -29,10 +29,18 @@ let
|
||||||
in
|
in
|
||||||
f from;
|
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" ''
|
screenshotScript = pkgs.writeScriptBin "screenshot" ''
|
||||||
#! ${pkgs.fish}/bin/fish
|
#! ${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" ];
|
ignored-devices = [ "Surface_Headphones" ];
|
||||||
|
|
Loading…
Reference in a new issue