mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
fixed script
This commit is contained in:
parent
ed7afeba43
commit
4ca8718643
1 changed files with 7 additions and 1 deletions
|
@ -4,4 +4,10 @@ elif [ "$1" = "output" ]; then
|
|||
SCREENPATH=$(grimshot save output)
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue