From b7d69271c193eea023afc5a11488adbf4c4af7b4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 22 Jul 2021 19:47:46 +1200 Subject: Add a short sleep before window snapping I think there's a race condition with keypresses forcing the snap freeze to stop, which delaying just a little seems to avoid. This really needs to be broken up into multiple lines. I'll do that in the next commit. --- X/sxhkdrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X/sxhkdrc b/X/sxhkdrc index 31cd4144..5d7aa42b 100644 --- a/X/sxhkdrc +++ b/X/sxhkdrc @@ -32,7 +32,7 @@ super + v urxvtcd -e "$VISUAL" super + shift + s - scrot --exec 'xclip -selection clipboard -target image/png -i $f ; mkdir -p "$$HOME"/screenshots && mv -- $f "$$HOME"/screenshots' --freeze --select + sleep 0.25 && scrot --exec 'xclip -selection clipboard -target image/png -i $f ; mkdir -p "$$HOME"/screenshots && mv -- $f "$$HOME"/screenshots' --freeze --select super + slash i3lock --color=#000000 --image ~/.i3/lock.png --nofork -- cgit v1.2.3