Files
nix/scripts/screenshot-selection.sh
2025-11-08 21:20:48 +02:00

12 lines
337 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 selection)
echo "$SS_PATH"
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ralsei/Pictures/Screenshots/* ]]; then
wl-copy < "$SS_PATH"
notify-send -i "$SS_PATH" "Ekrānuzņēmums" "nokopēts starpliktuvē!"
fi