screenshot.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user