12 lines
316 B
Bash
Executable File
12 lines
316 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# do NOT use $PATH for this!!
|
|
SS_PATH=$(timeout 30s bun run ~/config/scripts/bin/handleScreenshot.ts selection)
|
|
|
|
echo "$SS_PATH"
|
|
|
|
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
|
|
wl-copy < "$SS_PATH"
|
|
notify-send "Screenshot" "Selection copied to clipboard!"
|
|
fi
|