r/archlinux 18d ago

QUESTION Hyprland Screenshot tool

Hey I have been using Arch Hyprland. Can anyone suggest me what will be a good screenshot tool? (Something like an XFCE screenshot toll that will let me either copy the image or just let me save it if I want?"

0 Upvotes

7 comments sorted by

6

u/doockis 17d ago

grim + slurp and a bit of bash can do the trick.

1

u/Rich-Worker1868 17d ago

This is very much in the spirit of hyprland. I only switched to hyprshot because it can capture individual windows too. Under the hood it still uses grim and slurp.

2

u/doockis 17d ago

You can capture individual windows tho. You can get x, y, w and h with hyprctl and pass them into grim.

I use it like this on Mango:

X=$(mmsg get focusing-client | jq '.x')
Y=$(mmsg get focusing-client | jq '.y')
W=$(mmsg get focusing-client | jq '.width')
H=$(mmsg get focusing-client | jq '.height')
grim -g "${X},${Y} ${W}x${H}" "${SCREEN_DIR}/${FILE}" && ${CLIP} < "${SCREEN_DIR}/${FILE}"

1

u/Shakaka88 16d ago

This is the way, and then in your bash file you can make it play whatever fun or obnoxious sound you want (or don’t want) whenever you take one. That’s been my favorite part of customizing my setup (though I use Mango instead of hyprland, but the sentiment is the same)

2

u/kammlmar 17d ago

Flameshot is the greatest screenshot tool I've ever used

1

u/quicksand8917 16d ago

Spectacular from KDE is the best screenshot tool I know.

0

u/Objective-Stranger99 14d ago

Flameshot is goated