From f4209562d34cc41ffd640c577c59b683812e16ef Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Thu, 8 Oct 2020 08:50:36 +0100 Subject: [PATCH] Use `-f` option in scrot command to avoid line artifacts left on screen Details on the issue can be read on: https://github.com/resurrecting-open-source-projects/scrot/issues/36 The `-f` option "freezes" the screen (so no redraws happen) which means refreshes aren't happening, so the lines don't get drawn on the captured screenshot. The downside is, the screen doesn't redraw, so perhaps a matter of preference here! --- config.cfg-sample-linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cfg-sample-linux b/config.cfg-sample-linux index 3d8e89f..eef0470 100644 --- a/config.cfg-sample-linux +++ b/config.cfg-sample-linux @@ -2,7 +2,7 @@ username=myuser password=mypass posturl=http://yourhost.tld/gtkgrab/handler.php -command=scrot --b -s %s +command=sleep 0.5 && scrot -f --b -s %s gifCommand=record-gif.sh $(zenity --entry --text="How long to record?") %s notifyCommand=notify-send --hint=int:transient:1 "Screenshot Uploaded" "Copied URL to clipboard:\n %s" capPath=/tmp/ss.png