Skip to content

Instantly share code, notes, and snippets.

@madprops

madprops/proc.py Secret

Last active August 29, 2022 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madprops/b97430dfde9ab92ef64bd8c2335f01b5 to your computer and use it in GitHub Desktop.
Save madprops/b97430dfde9ab92ef64bd8c2335f01b5 to your computer and use it in GitHub Desktop.
proc = Popen(f'{prompt} -format i {rofi_style} -selected-row {selected}', stdout=PIPE, stdin=PIPE, shell=True, text=True)
ans = proc.communicate("\n".join(opts))[0].strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment