HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
emersion
slurp
C2019–2022
emersion / slurp

slurp

Select a region in a Wayland compositor

4Distinct people
4Mentions
0Explicit recommenders
1.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Select a region in a Wayland compositor

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2019-09-22 10:41:59 UTC to 2022-10-04 20:52:36 UTC.

0122019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2022

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC101
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC211

What Hacker News says

4 sources
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
Read the rest
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
In Tell HN: Gnome on Wayland Is Amazing
You want to use wf-recorder. This is in my sway config: > set $screenrecord wf-recorder -g "$(slurp)" -f ~/screenshots/mov-$(date +"%Y-%m-%d--%H-%M-%S.mp4") > bindsym Shift+Control+F6 exec $screenrecord > bindsym Ctrl+Shift+BackSpace exec killall -s SIGINT wf-recorder Hitting shift-control-f6 will spawn slurp which lets you click and drag to set the area you want to record. This will then launch wf-recorder and record the selected area, saving to ~/screenshots/mov-${date}. You can use ctrl-shift-backspace to kill the recorder and end recording. https://github.com/ammen99/wf-recorder https://github.com/emersion/slurp
In ffscreencast – a screencast CLI-tool with video overlay and multimonitor support
>like I have a script that OCR a region of the screen when I press a button (the coordinates depend of the app that runs) This is easy to do. Something like grim to take the screenshot of whatever region you want: https://github.com/emersion/grim And calculate the coordinates you need by querying the window manager. In sway (i3 compatible tiling WM) that would be: $ swaymsg -t get_tree To get a JSON of all the windows currently open and do whatever math is needed. You can also do a hand selection using slurp: https://github.com/emersion/slurp It works together with grim like this: $ grim -g "$(slurp)" screenshot.png Having recently moved from X to Wayland there are still some things missing sometimes but they're not many. If you want a DE at least GNOME and I think KDE as well are making the switch reasonably seamless. And there are some
Read the rest
features that Wayland solves much more thoroughly (e.g., tear free output, fractional scaling). The network transparency part, that is often brought up but rarely used in X is also being delivered: https://lists.freedesktop.org/archives/wayland-devel/2019-Au...
In Understanding the working of X11 from the ground up (2017)

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.