I made some basic scripts for capturing screenshots in
scrot doesn't have support for wayland.
|Screenshot utility for Wayland
|Select a region in a Wayland compositor
|Dynamic tiling Wayland compositor based on wlroots
|Command-line JSON processor
I made 3 scripts which all save screenshots in the same directory using the current date & time to provide a unique name.
The scripts save to
$HOME/Pictures/screenshots/ with unique filename
|capture active monitor
|capture active window
These scripts are available in the
bin directory in my
dotfiles repo on github.
Using hyprctl #
hyprland has a utility (
hyprctl) which allows a user to get information & give a json output.
hyprctl is a utility for controlling some parts of the compositor from a CLI or a script
Hyprland Wiki - Using hyprctl
I am using this with
jq in the scripts to get the active monitor & active window.
The source for my hyprland config is available in my dotfiles repo on github.