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