maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an im
maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an im
maim (Make Image) is an utility that takes screenshots of your desktop. It's meant to overcome shortcomings of scrot and performs better in several ways.
Takes screenshots of your desktop, and saves it in png, jpg, or bmp format.
Takes screenshots of predetermined regions or windows, useful for automation.
Allows a user to select a region, or window, before taking a screenshot on the fly.
Blends the system cursor to the screenshot.
Masks off-screen pixels to be transparent or black.
Maim cleanly pipes screenshots directly to standard output (unless otherwise specified), allowing for command chaining.
Maim supports anything slop does, even selection shaders!
CMake, glm, x11proto
libjpeg-turbo, libpng, libwebp, libX11, libXcomposite, libXext, libXfixes, libXrandr, libXrender
git clone https://github.com/naelstrof/slop.git
cd slop
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" ./
make && sudo make install
cd ..
git clone https://github.com/naelstrof/maim.git
cd maim
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" ./
make && sudo make installMaim allows for a lot of unique and interesting functionalities. Here's an example of a few interactions.
$ maim -s | xclip -selection clipboard -t image/png$ maim -st 9999999 | convert - \( +clone -background black -shadow 80x3+5+5 \) +swap -background none -layers merge +repage shadow.png$ maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:-$ maim -i $(xdotool getactivewindow) ~/mypicture.jpg$ maim ~/Pictures/$(date +%s).png$ maim -u | feh -F - & maim -s -k cropped.png && kill $!$ maim -s /tmp/screenshot.png; imgur.sh /tmp/screenshot.png | xclip -selection clipboard$ maim -qs | zbarimg -q --raw - | xclip -selection clipboard -fbindsym $mod+Shift+x exec "\
echo 1 > /sys/class/leds/platform\:\:micmute/brightness; \
sleep 5; \
maim --hidecursor ~/screenshots/$(date +%Y-%b-%d--%H-%M-%S_maim | tr A-Z a-z).png; \
echo 0 > /sys/class/leds/platform\:\:micmute/brightness; \
i3-nagbar --message 'Screenshot created' --type warning & \
sleep 3; pkill i3-nagbar"No open issues yet, or sync has not completed.