简体中文
Documentation Menu▾
Getting Started

Installation & Compositors

Install Shotori from AUR, crates.io, or GitHub Releases, set up desktop integration, and bind shortcuts on Wayland compositors.

Shotori is a native Rust binary built on Wayland protocols (zwlr-screencopy-v1 and wlr-layer-shell-v1) with a GPU-rendered UI powered by gpui-kit.

System Requirements

  • Wayland compositor implementing zwlr-screencopy-v1 — tested daily on niri and Hyprland, and compatible with sway, river, labwc, Wayfire, KWin, and COSMIC. (GNOME Mutter and X11 are not supported.)
  • xdg-desktop-portal for the native “Save As” file dialog (pre-installed on almost all modern Linux desktops; optional when Direct Save is enabled).
  • Notification daemon (optional) — mako, dunst, swaync, or any org.freedesktop.Notifications service.

Install Shotori

Arch Linux (AUR)

The AUR package installs the prebuilt stripped binary along with desktop launcher entries and icons automatically:

paru -S shotori
# or with yay:
yay -S shotori

crates.io (Cargo)

Build from source with a recent stable Rust toolchain (Edition 2024). Release builds strip symbol tables automatically:

cargo install shotori

GitHub Releases

Download the latest prebuilt archive from GitHub Releases and place shotori on your PATH (for example ~/.local/bin/shotori).

Desktop Launcher & Icons (Manual Builds)

Tray and notification icons are embedded directly in the shotori binary and work with zero setup. If you installed via cargo install or a release tarball and want an application launcher entry (shotori.desktop), run from the repository or extracted archive:

sh scripts/install-desktop.sh

This installs into ~/.local/share without requiring root. System packagers can pass a prefix and DESTDIR:

DESTDIR="$pkgdir" sh scripts/install-desktop.sh /usr

Bind a Compositor Shortcut

Screenshot tools feel best bound to a single chord. Add one of the snippets below to your compositor config:

niri (~/.config/niri/config.kdl)

binds {
    Mod+Shift+S { spawn "shotori"; }
    Print       { spawn "shotori" "full" "--screen" "--clipboard"; }
    Mod+Print   { spawn "shotori" "gui" "--window" "--tool" "arrow"; }
}

Hyprland (~/.config/hypr/hyprland.conf)

bind = SUPER SHIFT, S, exec, shotori
bind = , Print, exec, shotori full --screen --clipboard
bind = SUPER, Print, exec, shotori gui --window

sway (~/.config/sway/config)

bindsym $mod+Shift+s exec shotori
bindsym Print exec shotori full --screen --clipboard

Optional Resident System Tray

Run shotori tray in your session autostart to keep a StatusNotifierItem icon in Waybar, KDE Plasma, or GNOME AppIndicator:

shotori tray

Clicking the tray icon triggers an interactive capture; its context menu opens Settings directly.

Next, head to Quick Start to walk through your first capture.