Heyas
I’m trying to make a screenshot with the current Manjaro Gnome.
I used to use:
$ import -window root screenshot.png
import: unable to read X window image 'root': Die Ressource ist zur Zeit nicht verfügbar @ error/xwindow.c/XImportImage/5041.
import: `screenshot.png' @ error/import.c/ImportImageCommand/1288.
However, since Gnome now uses Wayland, all I get is an error message.
So I’ve been searching this forum and the Arch wiki: Screen capture - ArchWiki
And under section “Wayland”, it says that one should be able to use grim for screenshots.
Sadly, after installing sway and grim, I just get an error:
$ grim screenshot.jpg
wl_registry@2: error 0: invalid version for global wl_output (4): have 2, wanted 3
compositor doesn't support wlr-screencopy-unstable-v1
Also, using the recomended GIMP variant:
imlib2_grab screenshot.png
While working without an error message, it just results in a completly black image:
$ ll screenshot.png
-rw-r--r-- 1 sea sea 27K 11. Feb 17:26 screenshot.png
I’m runing Gnome (LTS) with:
$ uname -r
5.10.96-1-MANJARO
All other attempts to get additional information about screen/display just results in:
- XWAYLAND0
- Wayland
- wayland-0 (this would be the resolution
)
Seems my best guess would be to return to X instead?
Does anyone have a better/working idea please?
Thank you in advance!