]> git.rmz.io Git - dotfiles.git/commitdiff
bin/maif: pass options through to maim
authorSamir Benmendil <me@rmz.io>
Sun, 29 Oct 2023 16:51:42 +0000 (16:51 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:17 +0000 (17:36 +0000)
bin/maif

index e4e1d2a6eff61d92b11042bd3e0c05a156fdfccb..63de4c9f70580dbdda5358787ca2c5551e31533d 100755 (executable)
--- a/bin/maif
+++ b/bin/maif
@@ -25,14 +25,10 @@ while [[ $# -gt 0 ]]; do
 
     case $opt in
         -h|--help)     usage; exit 0 ;;
-        -* )
-            echo -e "\n  Option does not exist : $opt\n"
-            usage; exit 1 ;;
-
         *) args+=("$opt"); shift ;;
     esac
 done
 
 geometry="$(slop)"
 file="$(date "+%FT%T_${geometry%%+*}_maif.png")"
-maim --geometry="${geometry}" $file
+maim "${args[@]}" --geometry="${geometry}" $file