grim VS wayland-protocols

Compare grim vs wayland-protocols and see what are their differences.

grim

Grab images from a Wayland compositor (by emersion)

wayland-protocols

Wayland protocol development (mirror) (by wayland-project)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
grim wayland-protocols
11 5
757 141
- -
6.9 4.8
about 2 years ago over 1 year ago
C Meson
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

grim

Posts with mentions or reviews of grim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-21.
  • Ubuntu 22.10: Error "compositor doesn't support wlr-screencopy-unstable-v1" when trying to record the screen
    1 project | /r/Ubuntu | 27 Jan 2023
    "GNOME doesn't support wlr-screencopy-unstable-v1, which is the protocol grim uses to take screenshots." Source.
  • [GRIM] question
    1 project | /r/commandline | 30 Dec 2022
    It's in the README
  • Good cli screenshots tool under wayland ?
    1 project | /r/kde | 26 May 2022
    there is grim which is supposed to work under Wayland but it seems like it only works under swayWM, the reason why i need a cli tool is that I want to build Rofi script on top of it, I'm a ware spectacle and it is a very great option but I would prefer a Rofi based tool .
  • Tell HN: Gnome on Wayland Is Amazing
    14 projects | news.ycombinator.com | 21 Mar 2022
    sway laptop user here (for almost 2 years I think?).

    I spent a little while on this, but I migrated from i3, so I just ported every little section of my config bit by bit.

    In terms of battery bar and other "bar" type things, I use waybar[0] which basically does all the things you'd expect by default (just install and it "works").

    For multi-monitor, config, I initially setup with wdisplays[1] (think arandr for wayland) and then manually copied the positions into my sway config. Monitor positioning was the only thing I needed to setup (and telling it that one monitor was HDPI) and then all of the scaling and everything worked perfectly. This was my biggest selling point for wayland, I now get nice crisp fonts and application scaling works nicely (which was not the case with X).

    volume control from the keyboard took no time, just a couple of extra lines.

    There was some stuff to do with the clipboard (wl-clipboard[2]) and screenshots (grim[3] + slurp[4]) that required some setup, but again, just a few lines, and didn't take much mental load.

    Oh and I needed to change my notifications daemon(dunst[5]), and chose to change my program launcher to one with a nicer interface and cleaner fonts (wofi[6]).

    I think that's all the tweaking that I did. Oh, and I needed to do something with pipewire to sort out screensharing at the start, don't remember that too well though...

    [0] https://github.com/Alexays/Waybar

    [1] https://github.com/artizirk/wdisplays

    [2] https://github.com/bugaevc/wl-clipboard

    [3] https://github.com/emersion/grim

    [4] https://github.com/emersion/slurp

    [5] https://github.com/dunst-project/dunst

    [6] https://hg.sr.ht/~scoopta/wofi

  • Screenshot app: remembers "selection" mode, copies to clipboard, wayland support?
    3 projects | /r/linuxquestions | 18 Mar 2022
    grim might work well but you'll probably have to write a shell script or something to keep track of the user preferences. You'll also need slurp if you want to select a region to screenshot.
  • What apps are you running on Sway? (Wayland Native Apps of course)
    20 projects | /r/swaywm | 7 Mar 2022
    Screenshots: grim + slurp + swappy
  • Can I install Spectacle merely without other kde packages?
    1 project | /r/kde | 16 Nov 2021
  • How can I take screenshot with imagemagick?
    1 project | /r/NixOS | 23 Oct 2021
    Since you have already noticed that it does not work with Wayland, it is a strange requirement to take a screenshot "with it". Why not use a tool that does work with wayland, e.g. Grim?
  • What are some automation scripts that have made your life easier?
    11 projects | /r/commandline | 15 Jul 2021
    # Details I'm an English speaker living abroad, and while I'm trying to learn the local language it's real hard. I found myself popping open a browser to use deepl quite frequently, or trying to find translator plugins for several different applications. To make this process easier, I wrote a script (bound to a hotkey) which will screenshot a selected area, OCR it, translate it to english, and show a notification with the translated text. It also copies the translated text to the clipboard. Why screenshot + OCR rather than just selecting and copying text? Images and screen-sharing, mostly. I think this is just a really cool way to show how the hard parts have usually been done for you, and all you need to do is put the blocks together. ## Implementation I'm running sway, so the several of the tools are Wayland specific. You could easily swap them out for xorg compatible variants if you like. The script is [here](https://github.com/rbuchberger/dotfiles/blob/master/scripts/screenshot\_translate). The toolchain is: * [Slurp](https://github.com/emersion/slurp) - select an area * [Grim](https://github.com/emersion/grim) - screenshot that area * [Tesseract](https://github.com/tesseract-ocr/tesseract) - OCR * [Translate Shell](https://www.soimort.org/translate-shell/) - Translation CLI * [Mako](https://github.com/emersion/mako) - Notification window Mako needed a little configuration to show long form text: [category=translation] width=900 height=1200 Edit: added details and links for the tools used.
  • Flameshot, powerful screenshot tool, fully support Wayland (able to run on sway)
    7 projects | news.ycombinator.com | 13 Mar 2021
    I don't wanna poop on their parade, but haven't Wayland screenshotters been around for a while? https://github.com/emersion/grim

    That one has at least been around for long enough, and has worked perfectly under Sway for long enough, that I had to look up its name because I had it bound to a hotkey and had forgotten what it was called.

wayland-protocols

Posts with mentions or reviews of wayland-protocols. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-01.
  • c-api for wayland input-method-unstable-v1
    3 projects | /r/swaywm | 1 Jul 2021
    I was wondering which .so contains the symbols for https://github.com/wayland-project/wayland-protocols/blob/main/unstable/input-method/input-method-unstable-v1.xml.
  • Flameshot, powerful screenshot tool, fully support Wayland (able to run on sway)
    7 projects | news.ycombinator.com | 13 Mar 2021
    I was researching the issue and noticed wlr-screencapture. I was hoping to see it at https://github.com/wayland-project/wayland-protocols too, but no luck. Thanks for the lead on xfg-desktop-portal.

    It is fascinating watching the near decade-long journey as Wayland tackles screenshots.

  • Guide: Full Wayland Setup for Linux
    6 projects | news.ycombinator.com | 10 Mar 2021
    > Nothing is thrown away -> xserver is there for exactly this reason. Adding the extension for a system with bad abstraction is not too wise, but if you wanted to understand it, you would have done so already based on the video.

    I did watch the video, and while I was convinced that the X.org reference implementation was crusty, I was not convinced that there was anything inherently wrong with X11-the-protocol. Like, if there existed an X extension whose responsibility was just to get clients set up with their own video buffers that it could composite for them, then it sounds like it would address 90% of Wayland's value proposition. Is there a particular video snippet you want me to pay special attention to that clarifies this?

    > Why would it be lost? There is a core protocol that absolutely specifies it.

    I read through the stable interface definitions in the wayland-protocols repo [1], and did not see anything related to controlling which programs get to see which events. Is this still in development (or unstable)? If so, is there an ETA at which point I can expect every correct Wayland compositor to faithfully implement it?

    > And when you had only one player in the whole game.. which is pretty contradictory to your last sentence.

    That's because the X server implements the mechanisms, not policies, for multiplexing the screen and input devices. In the service of this, it provides tools to enumerate, identify, query, modify, and extend properties of windows, as well as route messages between them. There was never a compelling need for multiple competing incompatible X servers because X is the narrow waist (i.e. an unopinionated digital commons) shared by software that competed on policy.

    > I didn’t address these things because basically everything has a solution under wayland nowadays. Please have a look at the wayland-protocol repo and see for yourself the state of it. Also, wayland is a display manager, just because the X server was a monolith, it had no place to eg. manage clipboard. Actually, Wayland is the one that fulfills the UNIX philosophy of do one thing (although I don’t find the UNIX philosophy a good thing in every case)

    I read through the unstable interface definitions, and see that Wayland is indeed trying to implement not only the same kinds IPC facilities and input device multiplexing that X provided, but also is trying to impose stronger opinions on what types of windows exist and how they behave (e.g. Wayland has a notion of pop-ups, text inputs, and so on). So if Wayland's goal is to avoid being as "monolithic" as X, it appears to be failing.

    Also, putting core functionality that everyone must implement the same way into extensions just so they can call Wayland "just a protocol" or "just a display manager" is disingenuous. They might as well just say that they're part of the core protocol.

    > No, you just use wlroots that implemented the “crap-ton” of extensions for you already, and be on your way.

    Does the wlroots project define what extensions are standard and required for a piece of software to call itself a Wayland compositor? No? Then "just use wlroots" isn't addressing the problem of making sure these compositors are compliant to a set of common, useful standards. Like, maybe wlroots should be the standard-definer, just as X was? What happens with window managers built with a compositor that is not wlroots?

    [1] I was looking here: https://github.com/wayland-project/wayland-protocols

  • Plasma Wayland (session) Has Come a Long Way, But....
    1 project | /r/kde | 26 Jan 2021
    Virtual keyboard: https://bugs.kde.org/show_bug.cgi?id=427972 it is still a hot-topic on the protocol definition side with the current definition https://github.com/wayland-project/wayland-protocols/blob/master/unstable/text-input/text-input-unstable-v3.xml still not satisfactory, this was one of the subject of this weekend Plasma Wayland online Sprint. The Virtual keyboard is especially important for different input methods, aka chinese, japanese, koreans characters. You may want to setup http://maliit.github.io/ on your system.
  • [SimpleWM] Sometimes you just have to make things from scratch
    8 projects | /r/unixporn | 25 Jan 2021
    The protocol XML files have remarkable, concise documentation of each request, event and interface. Core protocol. Other protocols.

What are some alternatives?

When comparing grim and wayland-protocols you can also consider the following projects:

slurp - Select a region in a Wayland compositor

peek - Simple animated GIF screen recorder with an easy to use interface

swappy - A Wayland native snapshot editing tool, inspired by Snappy on macOS

flameshot - Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:

kanshi - Dynamic display configuration (mirror)

wtype - xdotool type for wayland

wl-clipboard - Command-line copy/paste utilities for Wayland

wayfire - A modular and extensible wayland compositor

xdg-desktop-portal-wlr - xdg-desktop-portal backend for wlroots

Waybar - Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:

sddm - QML based X11 and Wayland display manager