1
0

Seperate screenshot

This commit is contained in:
2025-04-01 03:42:22 +02:00
parent 3be23e7c70
commit 7d010f25de
3 changed files with 14 additions and 15 deletions

View File

@ -1,6 +1,7 @@
# See https://wiki.hyprland.org/Configuring/Keywords/
bind = , Print, exec, ~/Scripts/screenshot.sh
bind = SHIFT, Print, exec, ~/Scripts/screenshot-swappy.sh
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mod, return, exec, $terminal

10
Scripts/screenshot-swappy.sh Executable file
View File

@ -0,0 +1,10 @@
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"

View File

@ -1,20 +1,8 @@
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"
grimblast --freeze copysave 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"
hyprctl keyword animation "fadeOut, 1, 4, default"