wayland/grim 1.5.0 OpenBSD
grab images from a Wayland compositor
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- wayland
Description
Grab images from a Wayland compositor.
Screenshoot all outputs:
grim
Screenshoot a specific output:
grim -o DP-1
Screenshoot a region:
grim -g "10,20 300x400"
Select a region and screenshoot it:
grim -g "$(slurp)"
Use a custom filename:
grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.png')
Grab a screenshot from the focused window under Sway, using `swaymsg` and jq:
grim -g "$(swaymsg -t get_tree | jq -j '.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"')"
Pick a color, using ImageMagick:
grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | wayland/grim | 1.5.0 |
| FreeBSD | x11/grim | 1.5.0 |
| NetBSD | wayland/grim | 1.5.0 |
| DragonFly | x11/grim | 1.4.1_2 |
| MidnightBSD | x11/grim | 1.5.0 |
| HardenedBSD | x11/grim | 1.5.0 |
| GhostBSD | x11/grim | 1.5.0 |
Install
Binary package:
pkg_add grim
From the ports tree:
cd /usr/ports/wayland/grim && make install
Dependencies
Build dependencies 4
Run dependencies 3
No port depends on this one.