Add Wayland COPY_CMD to default config (#203)

This commit is contained in:
Yurii H 2021-02-22 09:49:57 +02:00 committed by GitHub
parent 8ad6d919d7
commit 4190da13f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,9 @@ else:
DEFAULT_OPEN = "open {file_path}"
if _os_name == _linux:
if os.environ.get("WAYLAND_DISPLAY"):
COPY_CMD = "wl-copy"
else:
COPY_CMD = "xclip -selection c"
else:
COPY_CMD = "pbcopy"