Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 1.19 KB

File metadata and controls

77 lines (50 loc) · 1.19 KB

Hyprcap

Screenshot utility for Hyprland.

You can take screenshots of windows, regions and monitors.

Installation

Clone the repo.

git clone https://github.com/nilsojunior/hyprcap.git
cd hyprcap

Build with cargo.

cargo build --release

Add to path.

sudo mv target/release/hyprcap /usr/bin

Dependencies

  • grim
  • slurp
  • wl-clipboard
  • jq
  • notification daemon

Usage

See the help command.

hyprcap -h

Screenshot a window.

hyprcap -m window

You can move your cursor out of the screen for the screenshot.

hyprcap -m window --move-cursor

Hyprshade

If you use Hyprshade you can disable your current shader for the screenshot.

   hyprcap -m window --disable-shader

Save Directory

Hyprcap will look for the HYPRCAP_DIR enviroment variable to set a directory for the screenshots.

If HYPRCAP_DIR is not set, it will look for XDG_PICTURES_DIR.

Iff XDG_PICTURES_DIR is not set, it will fallback to HOME.

Credits