Files
nix/scripts/screenshot-fullscreen.sh
2025-07-25 21:57:25 +03:00

12 lines
326 B
Bash
Executable File

#!/usr/bin/env bash
# do NOT use $PATH for this!!
SS_PATH=$(timeout 30s bun run ~/config/scripts/bin/handleScreenshot.ts fullscreen)
echo "$SS_PATH"
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
wl-copy < "$SS_PATH"
notify-send "Screenshot" "Fullscreen copied to clipboard!"
fi