]>
git.rmz.io Git - dotfiles.git/blob - bin/maif
   9     echo "Usage :  $0 [options] [FILE] 
  13     Takes a screenshot using maim and saves it to FILE. If FILE is 
  14     not given it defaults to current timestamp, and geometry of 
  18     -h,--help       Display this message" 
  23 while [[ $# -gt 0 ]]; do 
  27         -h|--help)     usage
; exit 0 ;; 
  29             echo -e "\n  Option does not exist : $opt\n" 
  32         *) args
+=("$opt"); shift ;; 
  37 file="$(date "+%FT
%T_
${geometry%%+*}_maif.png
")" 
  38 maim 
--geometry="${geometry}" $file