10

I have Ubuntu 18.04 (updated from 17.10 where I had the same problem), and when I use it with Wayland, I cannot use any screen capturing/recording apps. For instance, when I try to take a screenshot with Shutter, I get a weird pattern instead of what's actually on my screen: shutter

I know I can just switch to GNOME/Ubuntu on Xorg, but sometimes that's not an option. Is there a fix for this? Or a certain app that works as it should on Wayland?

2 Answers2

4

The default Screenshot (gnome-screenshot) application should work fine. Search for it in the "Activities" overview or use the Prt Sc key. You can capture your whole screen just by running

gnome-screenshot

For the GUI, run

gnome-screenshot -i

Run

gnome-screenshot -h

to see all possible options.

pomsky
  • 68,507
  • Thank you, no idea how I didn't think of the default app. Do you have any idea as to why these apps don't work on Wayland though? – SakoDaemon May 15 '18 at 15:20
  • Additionally, what should I use for recording the screen? SimpleScreenRecorder only seems to capture a black screen and my cursor. – SakoDaemon May 15 '18 at 15:21
  • 1
    @IoanaAlexandru Simple answer is those applications are not written for Wayland yet. Applications which are not compatible with Wayland yet run under a XWayland compatibility layer. But advanced applications, which depend on and/or control X11 server "too much" (screen-capturing/recording etc.), might fail to run in a Wayland session (Wayland has a stricter security policy). If you use Skype you would find the screen-sharing option doesn't work in Wayland, but works in Xorg. – pomsky May 15 '18 at 15:25
  • 1
    @IoanaAlexandru Same issue with screen-recording apps. Green Recorder claims to be Wayland compatible, but I have seen others complaining about its performance in a Wayland session (haven't tried it myself). – pomsky May 15 '18 at 15:28
0

I use grim -g "$(slurp)" - | wl-copy to take an area of a screen and put it in clipboard.
Works perfectly in Sway on Arch Linux.

Sergey
  • 616
  • I don't think grim is available in repos of any of the currently supported Ubuntu releases. – pomsky Feb 27 '19 at 14:21
  • grim is in the repos since 19.10 atleast. – k1l May 08 '20 at 22:38
  • err, what do you do with it after its in the clipboard? How do you save it to say ~/tmp? – RichieHH May 20 '21 at 09:43
  • 1
    @RichieHH sometimes you don't want to save it, just paste into some chat or program or whatever – Sergey May 21 '21 at 12:27
  • Sure, but I cant help but think a tmp copy as a file does no harm ;) Also I must admit I never once in my life "pasted" an image! I need to look into that ;) – RichieHH Jul 01 '21 at 09:52