Give Rofi menu time to disappear in printscreen script

This commit is contained in:
Riyyi
2021-07-26 02:20:35 +02:00
parent 3aa353f442
commit 8c83d5db37
+3
View File
@@ -37,6 +37,9 @@ Fullscreen"
choice="$(echo "$options" | rofi -no-fixed-num-lines -dmenu -i -p "Screenshot")" || exit 0 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" command="$screenshotter"
[ "$choice" = "Selection" ] && command="$command $selection" [ "$choice" = "Selection" ] && command="$command $selection"
[ "$choice" = "Active Window" ] && command="$command $activeWindow" [ "$choice" = "Active Window" ] && command="$command $activeWindow"