Freeze the screen of a Wayland compositor until a provided command exits.
Important
Make sure the command you provide gives you a way to quit in case it takes
over the keyboard input. If keyboard input is not taken over and you just run
it from the terminal you can still hit Ctrl+C as still just lets all
input to be passed through.
Works great with grim and slurp:
still -c 'slurp | grim -g- -'As well as with swappy if you want to annotate your screenshot right away:
still -c 'slurp | grim -g- -' | swappy -f -Add -p if you want to include a cursor (or pointer) on a frozen
screenshot:
still -p -c 'slurp | grim -g- -' | swappy -f -There's an AUR package.
Dependencies:
- meson
- libwayland-client
- wayland-protocols
- pixman
sudo pacman -S meson pixman wayland wayland-protocolssudo apt-get install meson libpixman-1-dev libwayland-dev wayland-protocolsmeson setup --buildtype release build
ninja -C buildA binary will be at ./build/still.