Skip to content

Commit aea8d2b

Browse files
update docstring
1 parent f34a99d commit aea8d2b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

utils/clipboard_watcher.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
CLIPBOARD_BUFFER_FILE="/tmp/clipboard"
44

5-
##############
6-
# watch if clipboard buffer file has changed with last modified time
7-
# if changed, then copy the content to clipboard
85
def start_clipboard_service():
6+
"""
7+
watch if clipboard buffer file has changed
8+
if true, then pipe content buffer to xclip
9+
"""
910
buffer=os.popen(f"cat {CLIPBOARD_BUFFER_FILE}").read().strip()
1011

1112
# check is xclip installed

0 commit comments

Comments
 (0)