From: Samir Benmendil Date: Sun, 29 Oct 2023 16:51:42 +0000 (+0000) Subject: bin/maif: pass options through to maim X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/c554d3c0e21e0fb907176386efd4dffbd7961cc8?ds=sidebyside bin/maif: pass options through to maim --- diff --git a/bin/maif b/bin/maif index e4e1d2a..63de4c9 100755 --- 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