From b2fce36b8069133ec7487d14a1fde4f4ae49b843 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Sat, 9 Apr 2022 15:50:46 +0200 Subject: [PATCH] cast screenshot with shotgun and hacksaw (fixed picom conf) --- .scripts/cast_screenshot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.scripts/cast_screenshot b/.scripts/cast_screenshot index ef0e83e..8514fc4 100755 --- a/.scripts/cast_screenshot +++ b/.scripts/cast_screenshot @@ -1,3 +1,6 @@ #!/bin/sh -scrot -s -e 'xclip -selection clipboard -t "image/png" < $f && mv $f ~/Pictures/screenshots' +filename="/home/qv/Pictures/screenshots/$(date -u +"%Y-%m-%d%H%M%S")-screenshot.png" +selection=$(hacksaw -f "-i %i -g %g") +shotgun $selection $filename +xclip -t 'image/png' -selection clipboard < $filename