diff --git a/hosts/seven-red-suns/default.nix b/hosts/seven-red-suns/default.nix index 412c1be..f547720 100644 --- a/hosts/seven-red-suns/default.nix +++ b/hosts/seven-red-suns/default.nix @@ -44,7 +44,9 @@ gnome.keybinds.custom = { "take-screenshot" = { binding = "Print"; - command = "${lib.getExe pkgs.flameshot} gui"; + command = let + screenshotScript = pkgs.writeScript "screenshot" "XDG_SESSION_TYPE=wayland ${lib.getExe pkgs.flameshot} gui -c"; + in ''${screenshotScript}''; }; "take-screen-recording" = { binding = "Print";