mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
port-jobs: Removed comments added by CLIPBOARD.py LINUX
Former-commit-id: 49aa9c01d5ed6b8e5863bf4a071f70c2ae5c8fd5 Former-commit-id: 1cb19b41d438ab2f3a8423ced0c4cc99ae3168ab
This commit is contained in:
@@ -25,10 +25,10 @@ if len(arguments) > 0:
|
|||||||
.replace('%', '%%')], stdout=PIPE).stdout)
|
.replace('%', '%%')], stdout=PIPE).stdout)
|
||||||
Popen("sleep 30; printf '' | xclip -sel c", shell=True)"""
|
Popen("sleep 30; printf '' | xclip -sel c", shell=True)"""
|
||||||
elif arguments[0] == 'LINUX':
|
elif arguments[0] == 'LINUX':
|
||||||
replacement = """if 'WAYLAND_DISPLAY' in environ: # Wayland clipboard detection
|
replacement = """if 'WAYLAND_DISPLAY' in environ:
|
||||||
run(['wl-copy', _copy_line[_index].rstrip()])
|
run(['wl-copy', _copy_line[_index].rstrip()])
|
||||||
Popen('sleep 30; wl-copy -c', shell=True)
|
Popen('sleep 30; wl-copy -c', shell=True)
|
||||||
else: # X11 clipboard detection
|
else:
|
||||||
run(['xclip', '-sel', 'c'], stdin=Popen(['printf', _copy_line[_index].rstrip().replace('\\\\\\', '\\\\\\\\\\\\\\')
|
run(['xclip', '-sel', 'c'], stdin=Popen(['printf', _copy_line[_index].rstrip().replace('\\\\\\', '\\\\\\\\\\\\\\')
|
||||||
.replace('%', '%%')], stdout=PIPE).stdout)
|
.replace('%', '%%')], stdout=PIPE).stdout)
|
||||||
Popen("sleep 30; printf '' | xclip -sel c", shell=True)"""
|
Popen("sleep 30; printf '' | xclip -sel c", shell=True)"""
|
||||||
|
|||||||
Reference in New Issue
Block a user