From 1e7905c0ab5327aca0805c81dc7a002de5c80485 Mon Sep 17 00:00:00 2001 From: Slackadays Date: Fri, 6 Jan 2023 23:08:18 -0500 Subject: [PATCH] Add CLIPBOARD_NOGUI integration --- man/man.1 | 19 ++++--------------- man/man.md | 4 ++++ src/messages.cpp | 1 + 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/man/man.1 b/man/man.1 index c993e8c48..db10d0181 100644 --- a/man/man.1 +++ b/man/man.1 @@ -1,19 +1,5 @@ -.\" Automatically generated by Pandoc 2.19.2 +.\" Automatically generated by Pandoc 2.9.2.1 .\" -.\" Define V font for inline verbatim, using C font in formats -.\" that render this, and otherwise B font. -.ie "\f[CB]x\f[]"x" \{\ -. ftr V B -. ftr VI BI -. ftr VB B -. ftr VBI BI -.\} -.el \{\ -. ftr V CR -. ftr VI CI -. ftr VB CB -. ftr VBI CBI -.\} .TH "" "" "" "" "" .hy .SH clipboard(1) \[en] cut, copy, and paste in the terminal @@ -77,6 +63,9 @@ use to hold the items you cut or copy into a persistent directory. .PP Set this environment variable to make Clipboard always use persistent clipboards. +.SS \f[B]CLIPBOARD_NOGUI\f[R] +.PP +Set this environment variable to disable GUI clipboard integration. .SS \f[B]NO_COLOR\f[R] .PP Set this environment variable to make Clipboard not show any colors. diff --git a/man/man.md b/man/man.md index ab27c7b3e..3ef8ff678 100644 --- a/man/man.md +++ b/man/man.md @@ -49,6 +49,10 @@ Set this environment variable to the directory that only Clipboard will use to h Set this environment variable to make Clipboard always use persistent clipboards. +### **CLIPBOARD_NOGUI** + +Set this environment variable to disable GUI clipboard integration. + ### **NO_COLOR** Set this environment variable to make Clipboard not show any colors. diff --git a/src/messages.cpp b/src/messages.cpp index 07b61eefa..f8eb5aeaa 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -74,6 +74,7 @@ std::string_view help_message = "{blue}▏This is Clipboard %s, the cut, copy, a "{orange}▏CLIPBOARD_TMPDIR: {pink}Set to the directory that only Clipboard will use to hold the items you cut or copy into temporary clipboards.{blank}\n" "{orange}▏CLIPBOARD_PERSISTDIR: {pink}Set to the directory that only Clipboard will use to hold the items you cut or copy into persistent clipboards.{blank}\n" "{orange}▏CLIPBOARD_ALWAYS_PERSIST: {pink}Set to make Clipboard always use persistent clipboards.{blank}\n" + "{orange}▏CLIPBOARD_NOGUI: {pink}Set to disable GUI clipboard integration.{blank}\n" "{orange}▏NO_COLOR: {pink}Set to make Clipboard not show color.{blank}\n" "{blue}▏You can show this help screen anytime with {bold}clipboard -h{blank}{blue}, {bold}clipboard --help{blank}{blue}, or{bold} clipboard help{blank}{blue}.\n" "{blue}▏You can also get more help in our Discord server at {bold}https://discord.gg/J6asnc3pEG{blank}\n"