From 4190da13f802265b44858d29f874d3f5291d3d92 Mon Sep 17 00:00:00 2001 From: Yurii H Date: Mon, 22 Feb 2021 09:49:57 +0200 Subject: [PATCH] Add Wayland COPY_CMD to default config (#203) --- tg/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tg/config.py b/tg/config.py index fd15d39..bf1f2bb 100644 --- a/tg/config.py +++ b/tg/config.py @@ -57,7 +57,10 @@ else: DEFAULT_OPEN = "open {file_path}" if _os_name == _linux: - COPY_CMD = "xclip -selection c" + if os.environ.get("WAYLAND_DISPLAY"): + COPY_CMD = "wl-copy" + else: + COPY_CMD = "xclip -selection c" else: COPY_CMD = "pbcopy"