Browse Source

Make delays shorter

master
Arti Zirk 2 years ago
parent
commit
ada6278fc7
  1. 3
      .bin/wscreenshot.py

3
.bin/wscreenshot.py

@ -33,8 +33,7 @@ else:
image = Popen(["grim", "-o", f"{output.get('name')}", '-'], stdout=PIPE) image = Popen(["grim", "-o", f"{output.get('name')}", '-'], stdout=PIPE)
viewer = Popen(['swayimg', '-f', '-o', f'{output.get("name")}','-'], stdin=image.stdout) viewer = Popen(['swayimg', '-f', '-o', f'{output.get("name")}','-'], stdin=image.stdout)
image_viewers.append(viewer) image_viewers.append(viewer)
time.sleep(0.1)
time.sleep(0.3)
region = run('slurp', check=True, capture_output=True) region = run('slurp', check=True, capture_output=True)
run(["grim", '-g', '-', file_name], check=True, input=region.stdout) run(["grim", '-g', '-', file_name], check=True, input=region.stdout)

Loading…
Cancel
Save