|
11 jaren geleden | |
---|---|---|
README.md | 11 jaren geleden | |
main.cpp | 11 jaren geleden | |
makefile | 11 jaren geleden | |
options.cpp | 11 jaren geleden | |
options.hpp | 11 jaren geleden | |
x.cpp | 11 jaren geleden | |
x.hpp | 11 jaren geleden |
slrn (Select Region) is an application that querys for a selection from the user and prints the region to stdout. It grabs the mouse and turns it into a crosshair, lets the user click and drag to make a selection (or click on a window) while drawing a pretty box around it, then finally prints the selection's dimensions to stdout.
slrn can be used to create a video recording script in only two lines of code.
#!/bin/bash
eval `slrn`
ffmpeg -f x11grab -s "$W"x"$H" -i :0.0+$X,$Y -f alsa -i pulse ~/myfile.webm
slrn lets you select a region or window and ffmpeg will record it in the format of your choice! Combined with keybinds and a server on your filesystem you can make a really neat and unobtrusive screenshooter.