Modify screenshot script

Clear clipboard before copy screenshot.
This commit is contained in:
samedamci 2020-05-03 11:32:56 +02:00
parent 708d2b989c
commit b8906b3adc

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