<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7926&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Installation and Setup: Hyprshot, a screenshot tool for Hyprland]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7926</link>
		<description><![CDATA[The most recent posts in Installation and Setup: Hyprshot, a screenshot tool for Hyprland.]]></description>
		<lastBuildDate>Thu, 23 Apr 2026 04:36:52 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Installation and Setup: Hyprshot, a screenshot tool for Hyprland]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=63349#p63349</link>
			<description><![CDATA[<p><strong>Hyprshot</strong> 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 <span class="bbc">grim</span> (for capturing), <span class="bbc">slurp</span> (for region selection), and <span class="bbc">wl-clipboard</span> (for copying to clipboard).</p><h5>Navigate to the upstream repository</h5><p>Navigate to the Hyprshot <a href="https://github.com/Gustash/Hyprshot#installation" rel="nofollow">GitHub repository</a> for the source files and installation instructions. This guide is based on that repository, customized for Devuan.</p><h5>Install dependencies</h5><p>Install the dependencies mentioned in the Hyprshot repository, alongside the <span class="bbc">dunst</span> notification daemon.</p><div class="quotebox"><blockquote><div><p><strong>ℹ️IMPORTANT</strong><br />On Devuan, <span class="bbc">libnotify-bin</span> by itself is not enough for Hyprshot to operate.</p></div></blockquote></div><div class="codebox"><pre><code>$ su -
# apt install jq grim slurp wl-clipboard libnotify-bin dunst
# exit</code></pre></div><h5>Creating the optimal directory for manually installed user scripts</h5><p>For a manual installation (downloading the script directly), place it in a directory that is in your user&#039;s <span class="bbc">$PATH</span>. The most common and recommended location is <span class="bbc">~/.local/bin</span>.</p><div class="codebox"><pre><code>$ mkdir -p ~/.local/bin</code></pre></div><p>If this directory does not exist or is not in your PATH, you will need to create it and add it to your shell&#039;s configuration file (e.g., <span class="bbc">~/.bashrc</span> or <span class="bbc">~/.zshrc</span>).</p><div class="quotebox"><blockquote><div><p><strong>💡TIP</strong><br />Devuan, by default, should have the <span class="bbc">~/.local/bin</span> directory added by default via <span class="bbc">/etc/bash.bashrc</span>.</p></div></blockquote></div><h5>Clone Hyprshot source code into created directory</h5><div class="codebox"><pre><code>$ git clone https://github.com/Gustash/hyprshot.git ~/.local/bin/Hyprshot</code></pre></div><h5>Symbolically make the script executable</h5><p>Create a symbolic link to make the script executable from anywhere.</p><div class="codebox"><pre><code>$ cd ~/.local/bin
$ ln -s $(pwd)/Hyprshot/hyprshot $HOME/.local/bin
$ chmod +x Hyprshot/hyprshot</code></pre></div><h5>Restarting your system and testing the command</h5><p>After completing the installation, restart your system to ensure all changes, environment variables, and the PATH are properly loaded.</p><div class="codebox"><pre><code>$ su -
# reboot</code></pre></div><p>To test Hyprshot, log in, open a terminal and run a command to capture a specific element, such as:</p><div class="codebox"><pre><code>$ hyprshot -m window</code></pre></div><p>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 <span class="bbc">XDG_PICTURES_DIR</span> (typically <span class="bbc">~/Pictures</span>) and copied to the clipboard. You can test other modes like <span class="bbc">-m region</span> for a custom area or <span class="bbc">-m output</span> for a full monitor.</p>]]></description>
			<author><![CDATA[dummy@example.com (wolfchar)]]></author>
			<pubDate>Thu, 23 Apr 2026 04:36:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=63349#p63349</guid>
		</item>
	</channel>
</rss>
