Here's my handrolled solution for taking screenshot on my arch linux, using imagemagick, feh & xbindkeys for taking & displaying the just-taken screenshot on my arch linux:
# 1. Installing the required packages
pacman -S xbindkeys feh imagemagick
# 2. Scripting
~/bin/take-screenshots 1 2 3 4 5 6 7 8
| #!/bin/bash
dir=~/pictures/screenshots [ -d $dir ] || mkdir -p $dir
file=${dir}/`ls ${dir} | wc -l`.png import -window root ${file} feh $file
|
#3. Inserting the
<PrtSc> key binding in
~/.xbindkeysrc 1 2 3
| "~/bin/take-screenshots" m:0x0 + c:107 Print
|
Restart ur X server & pressing
<PrtSc> should pop up the just-taken screenshot.
No comments:
Post a Comment