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

View File

@@ -269,11 +269,14 @@ bind = $mainMod, G, fullscreen, 0 # fullscreen, fill entire screen
# screenshot
# https://github.com/alonso-herreros/hyprcap
$hyprcapFilename = YYYYMMDDhhmmss_k.<extension>
$hyprcapOutDir = /home/poq/syncDir/0_downloads/
#$hyprcapFilename = YYYYMMDDhhmmss_k.<extension>
#$hyprcapOutDir = /home/poq/syncDir/0_downloads/
bind = $mainMod SHIFT, PRINT, exec, hyprcap shot -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # monitor
bind = $mainMod, PRINT, exec, hyprcap shot window:active -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # window
#bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify --write --output-dir $hyprcapOutDir --filename $hyprcapFilename # region
bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify --write --output-dir $hyprcapOutDir --filename $hyprcapFilename # region
#bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify # region
#bind = $MOD SHIFT, R, exec, hyprcap rec region -c -n # Toggle recording a region
#bind = $MOD SHIFT ALT, R, exec, hyprcap rec window:active -c -n # Toggle recording current window