Browse Source

Give Rofi menu time to disappear in printscreen script

master
Riyyi 3 years ago
parent
commit
8c83d5db37
  1. 3
      .local/bin/printscreen

3
.local/bin/printscreen

@ -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"

Loading…
Cancel
Save