From 29e7eb0f4caee3a2b7086e8fe3d06b958dfdabbd Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 16 Apr 2023 14:47:16 -0400 Subject: [PATCH] port-jobs: Corrected indentation in COMMENTS.py LINUX Former-commit-id: c705f798d9365ee1e324157f2cb6c1e11f736685 Former-commit-id: 0c2368d5a15402103f0a1e09bce9e50778706691 --- port-jobs/CLIPBOARD.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/port-jobs/CLIPBOARD.py b/port-jobs/CLIPBOARD.py index d5a7967..7442f10 100755 --- a/port-jobs/CLIPBOARD.py +++ b/port-jobs/CLIPBOARD.py @@ -26,12 +26,12 @@ if len(arguments) > 0: Popen("sleep 30; printf '' | xclip -sel c", shell=True)""" elif arguments[0] == 'LINUX': replacement = """if 'WAYLAND_DISPLAY' in environ: - run(['wl-copy', _copy_line[_index].rstrip()]) - Popen('sleep 30; wl-copy -c', shell=True) - else: - run(['xclip', '-sel', 'c'], stdin=Popen(['printf', _copy_line[_index].rstrip().replace('\\\\\\', '\\\\\\\\\\\\\\') - .replace('%', '%%')], stdout=PIPE).stdout) - Popen("sleep 30; printf '' | xclip -sel c", shell=True)""" + run(['wl-copy', _copy_line[_index].rstrip()]) + Popen('sleep 30; wl-copy -c', shell=True) + else: + run(['xclip', '-sel', 'c'], stdin=Popen(['printf', _copy_line[_index].rstrip().replace('\\\\\\', '\\\\\\\\\\\\\\') + .replace('%', '%%')], stdout=PIPE).stdout) + Popen("sleep 30; printf '' | xclip -sel c", shell=True)""" else: s_exit()