From 6a3a8d6246ccfbf903ccabf48f9209309fea2905 Mon Sep 17 00:00:00 2001 From: Thore Bödecker Date: Sun, 26 Jun 2022 22:33:26 +0200 Subject: add support for clipboard_target config option Default behaviour of `xclip` is to copy into the `primary` selection. Default behaviour of `wl-copy` is to copy into the `clipboard`. This commit introduces a new config option called `clipboard_target` that: - allows disabling the copy to any clipboard entirely - enforce copy to `primary` (i.e. for `wl-copy`) - enforce copy to `clipboard` (i.e. for `xclip`) --- fb.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'fb.1') diff --git a/fb.1 b/fb.1 index c777c5d..87af4b2 100644 --- a/fb.1 +++ b/fb.1 @@ -128,7 +128,24 @@ The following option names are supported: .It pastebin The URL of the pastebin you want to use .It clipboard_cmd -The command used to copy URLs of uploaded files to the clipboard. This defaults to pbcopy on Darwin and xclip otherwise. +The command used to copy URLs of uploaded files to the clipboard. +This defaults to +.Xr xclip 1 on X11, +.Xr wl-copy 1 on Wayland and +.Xr pbcopy 1 on Mac OS / Darwin. +.It clipboard_target +Configure which clipboard to use. Allowed settings: +.Bl -tag -width "none / off" +.It default +Use the default behavior, i.e. "primary" for X11/xclip and "clipboard" for Wayland/wl-copy. +This is implicitly the default if not specified. +.It none / off +Disable copying the upload URL into the clipboard. +.It primary +Enforce copy into the "primary" selection (for Wayland/wl-copy). +.It clipboard +Enforce copy into the "clipboard" selection (for X11/xclip). +.El .It apikey_file The file that contains the API key. This defaults to "$XDG_CONFIG_HOME/fb-client/apikey" .El -- cgit v1.2.3-24-g4f1b