Fix open screenshot with ristretto

This commit is contained in:
q3aql 2025-05-17 13:25:21 +02:00
parent 1f3c1527e3
commit 94a0492e6d

View File

@ -66,14 +66,16 @@ if [ -z "$clipboard" ] || [ "$clipboard" == yes ];then
fi
else
if [ -z "$GEO" ]; then
grim $OPTION $FILEDIR/Screenshot_$(date +%F_%H.%M.%S).png
name_screenshot="$FILEDIR/Screenshot_$(date +%F_%H.%M.%S).png"
grim $OPTION "$name_screenshot"
if [ -f /usr/bin/ristretto ] ; then
ristretto $FILEDIR/Screenshot_$(date +%F_%H.%M.%S).png
ristretto "$name_screenshot"
fi
else
grim $OPTION -g "$GEO" $FILEDIR/Screenshot_$(date +%F_%H.%M.%S).png
name_screenshot="$FILEDIR/Screenshot_$(date +%F_%H.%M.%S).png"
grim $OPTION -g "$GEO" "$name_screenshot"
if [ -f /usr/bin/ristretto ] ; then
ristretto $FILEDIR/Screenshot_$(date +%F_%H.%M.%S).png
ristretto "$name_screenshot"
fi
fi
fi