From b8906b3adc5d3df40d02efa029828dc255c1dadd Mon Sep 17 00:00:00 2001 From: samedamci Date: Sun, 3 May 2020 11:32:56 +0200 Subject: [PATCH] Modify screenshot script Clear clipboard before copy screenshot. --- botfiles/.scripts/screenshot | 1 + 1 file changed, 1 insertion(+) diff --git a/botfiles/.scripts/screenshot b/botfiles/.scripts/screenshot index 6d75d31..207e94d 100755 --- a/botfiles/.scripts/screenshot +++ b/botfiles/.scripts/screenshot @@ -19,4 +19,5 @@ maim $TYPE "$SCREEN_PATH" && notify-send -u low -t 1400 -i "$SCREEN_PATH" "Screenshot created!" [ "$SAVE" = "Yes" ] && + xclip -sel clip /dev/null; sleep 0.5 xclip -selection clipboard -t image/png "$SCREEN_PATH" || exit