diff options
author | aszlig <aszlig@nix.build> | 2021-02-13 04:04:40 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2021-02-13 04:40:38 +0100 |
commit | 6ee8541db0196536c935cd8c82dca1991240d38e (patch) | |
tree | 63402221b32d18a3d57108a2db80bd5527cd7f36 /tests/aszlig | |
parent | c7e86fadd27d30ebcf56cb311ce9661e5b244f2a (diff) |
profiles/workstation: Add Flameshot
So far I've almost exclusively used scrot for screenshots, but most of the time I used an image manipulation program to pixelate stuff, add descriptions or draw arrows. Flameshot combines this in a single application, so I expect that from now on I can spam-post screenshots in even a higher rate than before ;-) Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'tests/aszlig')
-rw-r--r-- | tests/aszlig/programs/flameshot.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/aszlig/programs/flameshot.nix b/tests/aszlig/programs/flameshot.nix new file mode 100644 index 00000000..35e1d570 --- /dev/null +++ b/tests/aszlig/programs/flameshot.nix @@ -0,0 +1,26 @@ +{ nixpkgsPath, ... }: + +{ + name = "flameshot"; + + machine = { pkgs, ... }: { + imports = [ + "${nixpkgsPath}/nixos/tests/common/user-account.nix" + "${nixpkgsPath}/nixos/tests/common/x11.nix" + ]; + test-support.displayManager.auto.user = "alice"; + vuizvui.user.aszlig.programs.flameshot.enable = true; + }; + + enableOCR = true; + + testScript = '' + # fmt: off + machine.wait_for_x() + machine.wait_for_file("/home/alice/.Xauthority") + machine.succeed("xauth merge ~alice/.Xauthority") + machine.succeed('su -c "DISPLAY=:0.0 flameshot gui" - alice &') + machine.wait_for_text('(?i)capture the screen') + machine.screenshot('flameshot') + ''; +} |