fixed script

This commit is contained in:
chloe 2025-03-23 17:39:23 +01:00
parent ed7afeba43
commit 4ca8718643

View file

@ -4,4 +4,10 @@ elif [ "$1" = "output" ]; then
SCREENPATH=$(grimshot save output) SCREENPATH=$(grimshot save output)
fi fi
cat $SCREENPATH | wl-copy -t image/png if [[ -f "$SCREENPATH" ]]; then
cat "$SCREENPATH" | wl-copy -t image/png
echo "Screenshot copied to clipboard :3"
else
echo "oh noes it failed... no file at $SCREENPATH"
exit 1
fi