1
0
Files
Dotfiles/Scripts/screenshot.sh
2025-04-01 03:39:25 +02:00

20 lines
608 B
Bash
Executable File

screenshotName="$(date +%Y%m%d_%H%m%s)"
screenshotDir="$HOME/myHome/Pictures/Screenshots"
hyprctl keyword animation "fadeOut, 0, 0, default"
grimblast --freeze save area "${screenshotDir}/$screenshotName.png"
swappy -f "${screenshotDir}/$screenshotName.png" -o "${screenshotDir}/$screenshotName-Swappy.png"
hyprctl keyword animation "fadeOut, 1, 4, default"
# WITHOUT SWAPPY
# screenshotName="$(date +%Y%m%d_%H%m%s)"
# hyprctl keyword animation "fadeOut, 0, 0, default"
# grimblast --freeze copysave area "${screenshotDir}/$screenshotName.png"
# hyprctl keyword animation "fadeOut, 1, 4, default"