From 72c29d21c715d98925c32b8c1f0625001226338f Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek 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