From 8c83d5db371399f6037f4d3681557ecfc295be74 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 26 Jul 2021 02:20:35 +0200 Subject: [PATCH] Give Rofi menu time to disappear in printscreen script --- .local/bin/printscreen | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.local/bin/printscreen b/.local/bin/printscreen index e609171..92d9048 100755 --- a/.local/bin/printscreen +++ b/.local/bin/printscreen @@ -37,6 +37,9 @@ Fullscreen" choice="$(echo "$options" | rofi -no-fixed-num-lines -dmenu -i -p "Screenshot")" || exit 0 +# Give Rofi menu time to disappear +sleep 0.1 + command="$screenshotter" [ "$choice" = "Selection" ] && command="$command $selection" [ "$choice" = "Active Window" ] && command="$command $activeWindow"