The officially official Devuan Forum!

You are not logged in.

#1 Today 04:36:52

wolfchar
Member
From: USA
Registered: 2026-04-10
Posts: 7  
Website

Installation and Setup: Hyprshot, a screenshot tool for Hyprland

Hyprshot is a specialized screenshot utility designed specifically for the Hyprland Wayland compositor. It functions as a shell script that serves as a wrapper around core tools like grim (for capturing), slurp (for region selection), and wl-clipboard (for copying to clipboard).

Navigate to the upstream repository

Navigate to the Hyprshot GitHub repository for the source files and installation instructions. This guide is based on that repository, customized for Devuan.

Install dependencies

Install the dependencies mentioned in the Hyprshot repository, alongside the dunst notification daemon.

ℹ️IMPORTANT
On Devuan, libnotify-bin by itself is not enough for Hyprshot to operate.

$ su -
# apt install jq grim slurp wl-clipboard libnotify-bin dunst
# exit
Creating the optimal directory for manually installed user scripts

For a manual installation (downloading the script directly), place it in a directory that is in your user's $PATH. The most common and recommended location is ~/.local/bin.

$ mkdir -p ~/.local/bin

If this directory does not exist or is not in your PATH, you will need to create it and add it to your shell's configuration file (e.g., ~/.bashrc or ~/.zshrc).

💡TIP
Devuan, by default, should have the ~/.local/bin directory added by default via /etc/bash.bashrc.

Clone Hyprshot source code into created directory
$ git clone https://github.com/Gustash/hyprshot.git ~/.local/bin/Hyprshot
Symbolically make the script executable

Create a symbolic link to make the script executable from anywhere.

$ cd ~/.local/bin
$ ln -s $(pwd)/Hyprshot/hyprshot $HOME/.local/bin
$ chmod +x Hyprshot/hyprshot
Restarting your system and testing the command

After completing the installation, restart your system to ensure all changes, environment variables, and the PATH are properly loaded.

$ su -
# reboot

To test Hyprshot, log in, open a terminal and run a command to capture a specific element, such as:

$ hyprshot -m window

This command will change your cursor, allowing you to click on any window to take a screenshot. If successful, the screenshot will be saved to your XDG_PICTURES_DIR (typically ~/Pictures) and copied to the clipboard. You can test other modes like -m region for a custom area or -m output for a full monitor.


wolfchar

"An idiot admires complexity, a genius admires simplicity." - Terry A. Davis

Online

Board footer