screenshot.sh

This commit is contained in:
committer@tuxwarrior
2026-02-28 21:05:08 -05:00
parent 30c697a8a6
commit 7c5a1961c7
2 changed files with 15 additions and 3 deletions

View File

@@ -4,7 +4,16 @@
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 ${ranwrd}
#echo "${filename}"
if [[ "$methodr" == "region" ]] ; then
hyprcap shot region --freeze --copy --notify --write --output-dir ${outputDir} --filename ${filename}
fi