Taking a screenshot with a delay

Hello,

I am trying to take a screenshot. I am using wayland. ksnip and flameshot both do not work. The "take a screenshot" option in the desktop environment does work. But I do not see an option to set a delay. This makes it difficult for me to take a screenshot of menus, for example. How can I take a screenshot with a delay, if ksnip and flameshot do not work, and if "take a screenshot" does not allow me to set a delay?

You have many options. Yes, Wayland is more restrictive and a user must weigh the cost to benefit of using Wayland. Using it because it is touted is not logically valid. Using it if you believe you get better performance on specific tasks is.

But not using Wayland would be one way to solve the issue.

I do not use Gnome. Gnome, in order to meet Wayland Expectations, removed the GnomeScreenshot tool and replaced it with an Integrated screenshot tool in the shell that has fewer options.
You can install the original tool

sudo apt install gnome-screenshot

I use XFCE screenshot tool for it having all the tools neatly laid out and visible.

I would switch to Zorin on xorg and install 'Shutter'. This has Time delay and is what I used for my first Unofficial Manual for Zorin and also an Inkscape Manual for work in creating Accessible images for students with low-vision.

These days I don't use Zorin as I prefer KDE Plasma and 'Spectacle' for screenshots.

Wayland problem is when a simple function become a war zone. And screenshot is not the only one...

1 Like

Can You specifiy what Menus You mean? Maybe a Right-Click Menu? You can do that with the built-in Tool, too:

To do that, make a Right Click and then press the Prnt-Button on Your Keyboard.

In xorg session, you can use gnome-screenshot which has a delay timer
.
With Wayland, to capture a menu, you need two steps:

  1. Shift+PrintScreen (saves entire screen (with any open menu) to ~/Pictures/Screenshots)

  2. Crop the image with an image editor. I use gthumb.

gnome-screenshot does not work in Wayland session, one of a number of such apps.

1 Like

I suggest you to use X11, GNOME's wayland has so many problems even after 17 years.
Think twice before abandoning X11.

But if you really want to use wayland, then this is a workaround.

# Install Dependencies:

# Compile-time
sudo apt install g++ cmake build-essential qt6-base-dev qt6-tools-dev-tools qt6-svg-dev qt6-tools-dev

# Run-time
sudo apt install libqt6dbus6 libqt6network6 libqt6core6 libqt6widgets6 libqt6gui6 libqt6svg6 qt6-qpa-plugins

# Install Flameshot:
sudo apt install flameshot

After installing it, open Settings → Keyboard → Keyboard Shortcuts → Custom Shortcuts and add this:
Name: flameshot
Command: /bin/sh -c '/usr/bin/flameshot gui'
Shortcut: Ctrl <

Note: It's important to state this /bin/sh in command, otherwise nonsense security of wayland would break, or you can also add this legacy command: xdotool exec flameshot gui

1 Like

Wayland (and being able to try out GNOME) is the reason why I chose ZorinOS. If I did not want to use Wayland, I would be using Linux Mint (I prefer Linux Mint over ZorinOS).

I tried installing flameshot, and I do have it on my system. But I get weird issues if I try to use flameshot on wayland to capture a portion of the screen. It seems to not allow me to select the portion that I have captured. I think it would be easier to have flameshot capture the whole screen, then crop the part which I need.

Thanks for everyone's help.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.