Skip to content

Commit

Permalink
pyperclip.set_clipboard('xclip')
Browse files Browse the repository at this point in the history
  • Loading branch information
midays committed May 20, 2024
1 parent fc660b1 commit e7995cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def get_screen_size():
def get_clipboard_text(split=False):
"""Returns the text currently copied in the clipboard."""
try:
pyperclip.set_clipboard('xclip')
text = pyperclip.paste()
print(text)
print("text")
Expand Down

0 comments on commit e7995cf

Please sign in to comment.