This commit is contained in:
committer@tuxwarrior
2026-02-28 21:19:51 -05:00
parent 1e55bfe51d
commit 05aeee96a5
3 changed files with 13 additions and 10 deletions

View File

@@ -9,11 +9,12 @@ 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
filename=${timestamp}_${ranwrd}.png
#echo ${ranwrd}
#echo "${filename}"
if [[ "$methodr" == "region" ]] ; then
if [[ "$method" == "monitor" ]] ; then
hyprcap shot -z -c -n -w -o ${outputDir} -f ${filename}
elif [[ "$method" == "region" ]] ; then
hyprcap shot region --freeze --copy --notify --write --output-dir ${outputDir} --filename ${filename}
elif [[ "$method" == "window" ]] ; then
hyprcap shot window:active -z -c -n -w -o ${outputDir} -f ${filename}
fi