Fix open screenshot with ristretto
This commit is contained in:
parent
1f3c1527e3
commit
94a0492e6d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user