Modify screenshot script

Clear clipboard before copy screenshot.
This commit is contained in:
Wiktor Zykubek 2020-05-03 11:32:56 +02:00
parent 62487073b9
commit 72c29d21c7

View File

@ -19,4 +19,5 @@ maim $TYPE "$SCREEN_PATH" &&
notify-send -u low -t 1400 -i "$SCREEN_PATH" "Screenshot created!" notify-send -u low -t 1400 -i "$SCREEN_PATH" "Screenshot created!"
[ "$SAVE" = "Yes" ] && [ "$SAVE" = "Yes" ] &&
xclip -sel clip /dev/null; sleep 0.5
xclip -selection clipboard -t image/png "$SCREEN_PATH" || exit xclip -selection clipboard -t image/png "$SCREEN_PATH" || exit