1

How do I take screenshot in Hyprland? I went through the Hyprland Wiki but I am not able to get to take screenshots in my archlinux.

How do I solve this?

How do I screenshot?

For a more complete utility, try our own screenshotting utility: Grimblast.

2
  • 1
    why did you include the two links at the end of your post? Commented May 20, 2023 at 5:23
  • 1
    It would be much better next time to include description of what you already tried when you went through mentioned Wiki. What didn't work etc. Commented Oct 24, 2023 at 17:42

2 Answers 2

3

You can install Grimblast utility from Hyprland's contrib, you linked in your own post. In Arch linux, you can use AUR package grimblast-git. Install it with i.e. yay: yay -S grimblast-git.

Screenshot area to clipboard

To take simple screenshot you can use i.e. grimblast copy area command, which will let you select region on your screen, take screenshot and copy it to clipboard.

Screenshot area to file

If you want to save screenshot to file, you can do it with grimblast save area /tmp/screenshot.png.

Other options

You can get all available options with command grimblast usage, for current version, it is:

Usage: grimblast [--notify] [--cursor] [--freeze] [--wait N] [--scale <scale>] (copy|save|copysave|edit) [active|screen|output|area] [FILE|-] grimblast check grimblast usage Commands: copy: Copy the screenshot data into the clipboard. save: Save the screenshot to a regular file or '-' to pipe to STDOUT. copysave: Combine the previous 2 options. edit: Open screenshot in the image editor of your choice (default is gimp). See man page for info. check: Verify if required tools are installed and exit. usage: Show this message and exit. Targets: active: Currently active window. screen: All visible outputs. output: Currently active output. area: Manually select a region or window. 

Shortcut from Hyprland

You can assign custom shortcut to take screenshot with grimblast in Hyprland. I.e for SUPER + C it would be:

bind = SUPER, C, exec, grimblast copy area 
3

You can use hyprshot.

The hyprshot tool can be used to take screenshots of an entire workspace, the current active window, or of a(n interactively-selected) specific region.

Copied from the official documentation, one could obtain this functionality by updating ~/.config/hypr/hyprland.conf to add the following lines:

# Somewhere earlier in your hyprland.conf file: $mainMod = SUPER # EXAMPLE: Sets the Super (Windows) key as the main modifier key # .... # Screenshot a window bind = $mainMod, PRINT, exec, hyprshot -m window # Screenshot a monitor bind = , PRINT, exec, hyprshot -m output # Screenshot a region bind = $mainMod_SHIFT, PRINT, exec, hyprshot -m region 

...this would cause:

  • Print Screen to take a screenshot of the entire monitor
  • Super + Print Screen to take a screenshot of the the currently-active window
  • Super + Shift + Print Screen to interactively prompt to select a specific region to screenshot.

....screenshots are copied to the wayland clipboard by default.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.