diff --git a/screenshot-spmenu b/screenshot-spmenu index 85b006c..b85ac6a 100755 --- a/screenshot-spmenu +++ b/screenshot-spmenu @@ -43,7 +43,7 @@ full_scr() { } sel_scr() { - [ ! -e "$1" ] && [ "$x11" = "true" ] && maim -s"${ARG2}"B > "$1" && return + [ ! -e "$1" ] && [ "$x11" = "true" ] && maim -sB > "$1" && return [ ! -e "$1" ] && wayshot --stdout -s "$(slurp)" > "$1" } @@ -121,7 +121,7 @@ esac # user action [ ! -s "/tmp/screenshot-$DATE" ] && exit 0 -[ -e "/tmp/screenshot-$DATE" ] && u_i="$(printf "${IMGPREFIX}${IMG}\tPNG\n${IMGPREFIX}${IMG}\tURL\n${IMGPREFIX}${IMG}\tSave\n" | $RUNLAUNCHER -l 3 $IMGARG -p "Copy to clipboard as:")" +[ -e "/tmp/screenshot-$DATE" ] && u_i="$(printf "${IMGPREFIX}${IMG}\tPNG\n${IMGPREFIX}${IMG}\tURL\n${IMGPREFIX}${IMG}\tSave\n" | $RUNLAUNCHER -l 3 -g 1 $IMGARG -p "Copy to clipboard as:")" if [ "$x11" = "true" ]; then img_clipboard_cmd="xclip -selection clipboard -t image/png"