mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
13 lines
324 B
Bash
Executable file
13 lines
324 B
Bash
Executable file
if [[ "$1" = "area" ]]; then
|
|
SCREENPATH=$(grimshot save area)
|
|
elif [ "$1" = "output" ]; then
|
|
SCREENPATH=$(grimshot save output)
|
|
fi
|
|
|
|
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
|