Horizon strives to serve the best experience possible for our users. Our userbase consists of many Linux users, but the screenshot tools currently available for Linux do not match our desired level of quality.
Up until today, Sharenix has been our best recommendation for Linux users who want to auto-upload their screenshots to Horizon, however the project has been abandoned since May 2021 and it is unusable on newer platforms, most notably Wayland.
The reasons above are exactly why we've built our own command-line screenshot tool designed by Horizon, for Horizon. It's easy to setup and is compatible with all major distributions that run Xorg or Wayland.
hrznsc currently only supports the GNOME desktop environment. KDE is not officially supported, but it may work if
gnome-screenshot
is installed.
This tutorial will focus on users running Debian-based distributions, but most steps can apply to others as well.
You'll need to install the following to get hrznsc working.
Update apt repositories with sudo apt update
.
Install wget
using sudo apt install wget
.
The following command differs depending on the window system you are running.
If running X.org
, install xclip
(to allow hrznsc to write to your clipboard) using sudo apt install xclip
.
If running Wayland
, install wl-clipboard
using sudo apt install wl-clipboard
.
Use the following to download hrznsc's binary.
wget https://cdn.horizon.pics/SRCTlBBp9drwc6zLtXPJo9s7AnRvxW -O hrznsc
This command will install the latest version of hrznsc (v0.0.4).
After downloading, verify the MD5 hash using md5sum hrznsc
. The output of this command should match the following:
2e620eb12c87d3a4d468f889775db4ff hrznsc
Run the hrznsc binary using ./hrznsc
. On first start, it will prompt you for your upload key.
If you get a permissions error when attempting to run hrznsc, run
chmod +x hrznsc
to mark it as executable and try again.
Paste your upload key into hrznsc and it will verify its validity. Once finished, it will announce completion and exit with code 1.
Now, move hrznsc into /usr/local/bin
to be able to call the binary system-wide using mv hrznsc /usr/local/bin
.
You've successfully setup hrznsc!
Open GNOME Settings and go to Keyboard Shortcuts.
Keyboard Shortcuts in GNOME Settings
Scroll all the way down and click the + icon.
The add button in Keyboard Shortcuts
Enter your name in name
and /usr/local/bin/hrznsc -screenshot
in command
.
To set a shortcut, click “Set Shortcut…” and type your shortcut combination.
When you're done, click “Add”.
You've successfully bound hrznsc to a shortcut combination!
hrznsc does not:
hrznsc only contacts api.horizon.pics
to upload files.