diff options
author | Thore Bödecker <me@foxxx0.de> | 2022-06-26 22:33:26 +0200 |
---|---|---|
committer | Thore Bödecker <me@foxxx0.de> | 2022-06-26 22:36:48 +0200 |
commit | 6a3a8d6246ccfbf903ccabf48f9209309fea2905 (patch) | |
tree | f5c65274c8c82a21783daf43b04d4c6e3412596a /fb.1 | |
parent | 836240e023df6ea5680c52cc2e59f7c86e79f3ad (diff) |
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`)
Diffstat (limited to 'fb.1')
-rw-r--r-- | fb.1 | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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 |