You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A basic clipboard manager for Wayland, with support for persisting copy buffers after an application exits.
10
10
.SH "OPTIONS"
11
11
.TP
12
-
\fB-h,--help\fR
13
-
Show context-sensitive help (also try --help-long and --help-man).
12
+
\fB\-h\fR, \fB\-\-help\fR
13
+
Show context\-sensitive help (also try
14
+
.B\-\-help\-long
15
+
and
16
+
.BR\-\-help\-man ).
14
17
.TP
15
-
\fB--histpath="~/.local/share/clipman.json"\fR
18
+
\fB\-\-histpath="~/.local/share/clipman.json"\fR
16
19
Path of history file
17
20
.TP
18
-
\fB--primary\fR
19
-
Serve item to the primary clipboard. Default: --no-primary
21
+
\fB\-\-primary\fR
22
+
Serve item to the primary clipboard. Default: \-\-no\-primary
20
23
.TP
21
-
\fB--notify\fR
24
+
\fB\-\-notify\fR
22
25
Send desktop notifications on errors
23
26
.TP
24
-
\fB-v,--version\fR
27
+
\fB\-\-err\-on\-no\-selection\fR
28
+
exit with an exit 1 when no selection is made in the picker.
29
+
.TP
30
+
\fB\-\-min\-char\fR
31
+
minimum number of characters before storing
32
+
.TP
33
+
\fB\-v,\-\-version\fR
25
34
Show application version.
26
35
.SH "COMMANDS"
27
36
.SS
@@ -31,79 +40,180 @@ Show help.
31
40
.SS
32
41
\fBstore[<flags>]\fR
33
42
.PP
34
-
Record clipboard events (run as argument to `wl-paste --watch`)
43
+
Record clipboard events (run as argument to `wl\-paste \-\-watch`)
35
44
.TP
36
-
\fB--max-items=15\fR
45
+
\fB\-\-max\-items=15\fR
37
46
history size
38
47
.TP
39
-
\fB-P,--no-persist\fR
48
+
\fB\-P,\-\-no\-persist\fR
40
49
Don't persist a copy buffer after a program exits
41
50
.TP
42
-
\fB--unix\fR
51
+
\fB\-\-unix\fR
43
52
Normalize line endings to LF
44
53
.SS
45
-
\fBpick--tool=TOOL[<flags>]\fR
54
+
\fBpick\-\-tool=TOOL[<flags>]\fR
46
55
.PP
47
56
Pick an item from clipboard history
48
57
.TP
49
-
\fB--max-items=15\fR
58
+
\fB\-\-max\-items=15\fR
50
59
scrollview length
51
60
.TP
52
-
\fB-t,--tool=TOOL\fR
61
+
\fB\-t,\-\-tool=TOOL\fR
53
62
Which selector to use: wofi/bemenu/CUSTOM/STDOUT
54
63
.TP
55
-
\fB-T,--tool-args=""\fR
56
-
Extra arguments to pass to the --tool
64
+
\fB\-T,\-\-tool\-args=""\fR
65
+
Extra arguments to pass to the \-\-tool
57
66
.TP
58
-
\fB--print0\fR
59
-
Separate items using NULL; recommended if your tool supports --read0 or similar
67
+
\fB\-\-print0\fR
68
+
Separate items using NULL; recommended if your tool supports \-\-read0 or similar
60
69
.SS
61
70
\fBclear[<flags>]\fR
62
71
.PP
63
72
Remove item/s from history
64
73
.TP
65
-
\fB--max-items=15\fR
74
+
\fB\-\-max\-items=15\fR
66
75
scrollview length
67
76
.TP
68
-
\fB-t,--tool=TOOL\fR
77
+
\fB\-t,\-\-tool=TOOL\fR
69
78
Which selector to use: wofi/bemenu/CUSTOM/STDOUT
70
79
.TP
71
-
\fB-T,--tool-args=""\fR
72
-
Extra arguments to pass to the --tool
80
+
\fB\-T,\-\-tool\-args=""\fR
81
+
Extra arguments to pass to the
82
+
.B\-\-tool
73
83
.TP
74
-
\fB-a,--all\fR
84
+
\fB\-a,\-\-all\fR
75
85
Remove all items
76
86
.TP
77
-
\fB--print0\fR
78
-
Separate items using NULL; recommended if your tool supports --read0 or similar
87
+
\fB\-\-print0\fR
88
+
Separate items using NULL; recommended if your tool supports
89
+
.B\-\-read0
90
+
or similar
79
91
.SS
80
92
\fBrestore\fR
81
93
.PP
82
94
Serve the last recorded item from history
83
-
\fBshow-history\fR
84
-
.PP
95
+
.SS
96
+
\fBshow\-history\fR
85
97
Show all items from history
86
98
.SH "USAGE"
87
-
Run the binary in your Sway session by adding `exec wl-paste -t text --watch clipman store` (or `exec wl-paste -t text --watch clipman store 1>> PATH/TO/LOGFILE 2>&1 &` to log errors) at the beginning of your config. It is highly recommended that you run clipman with the `--no-persist` option, see Known Issues.
88
-
.PP
89
-
For primary clipboard support, also add `exec wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json` (note that both the `-p` in wl-paste and the `-P` in clipman are mandatory in this case).
99
+
Run the binary in your Sway session by adding to your config:
100
+
.nf
101
+
\&
102
+
.in+4m
103
+
.Bexecwl\-paste\-ttext\-\-watchclipmanstore
104
+
.in
105
+
\&
106
+
.fi
107
+
or to log errors:
108
+
.nf
109
+
\&
110
+
.in+4m
111
+
.Bexecwl\-paste\-ttext\-\-watchclipmanstore\e
112
+
.in+4m
113
+
.B1>>PATH/TO/LOGFILE2>&1
114
+
.in-4m
115
+
.in-4m
116
+
\&
117
+
.fi
118
+
It is highly recommended that you run clipman with the
119
+
.B\-\-no\-persist
120
+
option, see
121
+
.BR"KNOWN ISSUES".
90
122
.PP
91
-
To query the history and select items, run the binary as `clipman pick -t wofi`. You can assign it to a keybinding: `bindsym $mod+h exec clipman pick -t wofi`.
92
-
You can pass additional arguments to the selector like this: `clipman pick --tool wofi -T'--prompt=my-prompt -i'` (both `--prompt` and `-i` are flags of wofi).
93
-
You can use a custom selector like this: `clipman pick --print0 --tool=CUSTOM --tool-args="fzf --prompt 'pick > ' --bind 'tab:up' --cycle --read0"`.
To serve the last history item at startup, add this to your Sway config:
195
+
.nf
196
+
\&
197
+
.in+4m
198
+
.Bexecclipmanrestore
199
+
.in
200
+
\&
201
+
.fi
98
202
.SH "BUGS"
99
203
.PP
100
-
When you experience a clipboard-related bug, try to see if it still happens without clipman running, as it's more likely to be caused by one of our own known issues rather than wl-clipboard.
204
+
When you experience a clipboard\-related bug, try to see if it still happens without clipman running, as it's more likely to be caused by one of our own known issues rather than wl\-clipboard.
101
205
.SH "KNOWN ISSUES"
102
206
.PP
103
207
We only support plain text.
104
208
.PP
105
209
By default, we continue serving the last copied item even after its owner has exited.
106
-
This means that, unless you run with the `--no-persist` option, you'll always immediately lose rich content;
for example: vim's visual block mode breaks; copying images in Firefox breaks; if you copy a bookmark in Firefox, you won't be able to paste it in another bookmark folder; if you copy formatted text inside Libre Office you'll lose all formatting on paste.
108
214
.PP
109
-
Run `clipman store` with the `--no-persist` option if you are affected. Unfortunately, it seems that there is no way to make them play well together.
215
+
Run
216
+
.Bclipmanstore
217
+
with the
218
+
.B\-\-no\-persist
219
+
option if you are affected. Unfortunately, it seems that there is no way to make them play well together.
0 commit comments