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?
For a more complete utility, try our own screenshotting utility: Grimblast.
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?
For a more complete utility, try our own screenshotting utility: Grimblast.
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.
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.
If you want to save screenshot to file, you can do it with grimblast save area /tmp/screenshot.png.
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. 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 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:
....screenshots are copied to the wayland clipboard by default.