goldwarden/ui/clipboard.py
2023-12-23 07:18:30 +01:00

5 lines
165 B
Python

import subprocess
def write(text):
process = subprocess.Popen(["/bin/sh", "-c", "wl-copy"], stdin=subprocess.PIPE)
process.communicate(text.encode('utf-8'))