screenshot.sh
This commit is contained in:
@@ -4,7 +4,16 @@
|
|||||||
|
|
||||||
method=$1
|
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=$(shuf -n 1 /usr/share/dict/cracklib-small) # get a random word
|
||||||
ranwrd="${ranwrd//[^[:alpha:]]/}" # remove all non-letters (like the ' in "sharecropper's")
|
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
|
||||||
|
|||||||
@@ -269,11 +269,14 @@ bind = $mainMod, G, fullscreen, 0 # fullscreen, fill entire screen
|
|||||||
|
|
||||||
# screenshot
|
# screenshot
|
||||||
# https://github.com/alonso-herreros/hyprcap
|
# https://github.com/alonso-herreros/hyprcap
|
||||||
$hyprcapFilename = YYYYMMDDhhmmss_k.<extension>
|
#$hyprcapFilename = YYYYMMDDhhmmss_k.<extension>
|
||||||
$hyprcapOutDir = /home/poq/syncDir/0_downloads/
|
#$hyprcapOutDir = /home/poq/syncDir/0_downloads/
|
||||||
bind = $mainMod SHIFT, PRINT, exec, hyprcap shot -z -c -n -w -o $hyprcapOutDir -f $hyprcapFilename # monitor
|
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 = $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 --write --output-dir $hyprcapOutDir --filename $hyprcapFilename # region
|
||||||
|
|
||||||
|
|
||||||
#bind = , PRINT, exec, hyprcap shot region --freeze --copy --notify # 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, 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
|
#bind = $MOD SHIFT ALT, R, exec, hyprcap rec window:active -c -n # Toggle recording current window
|
||||||
|
|||||||
Reference in New Issue
Block a user