Files
lnx-arch/dots/bin/screenshot.sh
committer@tuxwarrior 7c5a1961c7 screenshot.sh
2026-02-28 21:05:08 -05:00

20 lines
570 B
Bash
Executable File

#!/usr/bin/env bash
# klevstul :: 26.02
method=$1
outputDir="/home/poq/syncDir/0_downloads/"
timestamp=$(date +%y%m%d-%H%M%S) # get timestamp
ranwrd=$(shuf -n 1 /usr/share/dict/cracklib-small) # get a random word
ranwrd="${ranwrd//[^[:alpha:]]/}" # remove all non-letters (like the ' in "sharecropper's")
filename=${timestamp}_${ranwrd}.jpg
#echo ${ranwrd}
#echo "${filename}"
if [[ "$methodr" == "region" ]] ; then
hyprcap shot region --freeze --copy --notify --write --output-dir ${outputDir} --filename ${filename}
fi