| Crates.io | hyprshot-rs |
| lib.rs | hyprshot-rs |
| version | 0.1.4 |
| created_at | 2025-04-24 15:03:33.967701+00 |
| updated_at | 2026-01-24 10:00:14.677005+00 |
| description | A utility to easily take screenshots in Hyprland using your mouse |
| homepage | https://github.com/shikoucore/hyprshot-rs |
| repository | https://github.com/shikoucore/hyprshot-rs |
| max_upload_size | |
| id | 1647393 |
| size | 257,929 |
if you like this project, then the best way to express gratitude is to give it a star ⭐, it doesn't cost you anything, but I understand that I'm moving the project in the right direction.
A utility to easily take screenshots in Hyprland using your mouse.
~/.config/hyprshot-rs/config.toml)--init-config, --show-config, --set)--generate-hyprland-config)--install-binds)--setup-hotkeys)cargo install hyprshot-rs
yay -S hyprshot-rs
Required:
wl-clipboard - for clipboard operationshyprland - the compositorOptional:
hyprpicker - for screen freeze functionality (--freeze flag)On Arch Linux:
sudo pacman -S wl-clipboard hyprland hyprpicker
Note: Starting from v0.1.4,
slurpis embedded into the binary and no longer needs to be installed separately! If you haveslurpinstalled system-wide, hyprshot-rs will use it; otherwise, it will use the embedded version automatically.
Make it available regardless of the shell
sudo ln -s ~/.local/share/cargo/bin/hyprshot-rs /usr/local/bin/
hyprshot-rs [options ..] [-m [mode] ..] -- [command]
possible values: output, window, region, active, OUTPUT_NAME
Note: active is a modifier and must be combined with output or window.
Possible values:
hyprshot-rs -m window
hyprshot-rs -m region
hyprshot-rs -m output
hyprshot-rs -m output -m active
hyprshot-rs -m window -m active
DP-1):hyprshot-rs -m output -m DP-1
hyprshot-rs -m region -r > output.png
redirects the output to output.png in your current working directory. So if you're currently in ~/repository when running this command, that's where the screenshot will be saved, not in the default ~/Pictures directory.
Run hyprshot-rs --help or hyprshot-rs -h for more options.
Initialize configuration:
hyprshot-rs --init-config
Configure settings:
hyprshot-rs --set paths.screenshots_dir ~/user_name/Screenshots
hyprshot-rs --set capture.notification_timeout 500
View current configuration:
hyprshot-rs --show-config
Quick setup with interactive wizard:
hyprshot-rs --setup-hotkeys
Or manually generate and install keybindings:
# Generate keybindings
hyprshot-rs --generate-hyprland-config --with-clipboard
# Install to hyprland.conf (creates backup)
hyprshot-rs --install-binds --with-clipboard
Manual configuration - add to hyprland.conf:
bind = SUPER, Print, exec, hyprshot-rs -m window
bind = SUPER SHIFT, Print, exec, hyprshot-rs -m region
bind = SUPER CTRL, Print, exec, hyprshot-rs -m output
bind = , Print, exec, hyprshot-rs -m output -m active
See HOTKEYS.md for more examples. Based on the implementation: Hypershot