Debian Codegraph @

shared/copyq.1

raw
1 .TH CopyQ 1
2 .SH NAME
3 CopyQ \- Clipboard Manager with Advanced Features
4
5
6 .SH SYNOPSIS
7 .B copyq
8 [\fBCOMMAND\fR]
9
10
11 .SH DESCRIPTION
12 .B CopyQ
13 is advanced clipboard manager with editing and scripting features. It monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.
14
15
16 .SH COMMANDS
17 Starts server if no command is specified.
18
19 .TP
20 .BR show " [\fINAME\fR]"
21 Show main window and optionally open tab with given name.
22 .TP
23 .B hide
24 Hide main window.
25 .TP
26 .B toggle
27 Show or hide main window.
28 .TP
29 .B menu
30 Open context menu.
31 .TP
32 .B exit
33 Exit server.
34 .TP
35 .BR disable ", " enable
36 Disable or enable clipboard content storing.
37
38 .sp
39 .TP
40 .BR clipboard " [\fIMIME\fR]"
41 Print clipboard content.
42 .TP
43 .BR selection " [\fIMIME\fR]"
44 Print X11 selection content.
45 .TP
46 .B paste
47 Paste clipboard to current window (may not work with some applications).
48 .TP
49 .BR copy " \fITEXT\fR"
50 Set clipboard text.
51 .TP
52 .BR copy " \fIMIME\fR \fIDATA\fR [\fIMIME\fR \fIDATA\fR]..."
53 Set clipboard content.
54
55 .sp
56 .TP
57 .B count
58 Print amount of items in current tab.
59 .TP
60 .BR select " [\fIROW=0\fR]"
61 Copy item in the row to clipboard.
62 .TP
63 .B next
64 Copy next item from current tab to clipboard.
65 .TP
66 .B previous
67 Copy previous item from current tab to clipboard.
68 .TP
69 .BR add " \fITEXT\fR..."
70 Add text into clipboard.
71 .TP
72 .BR insert " \fIROW\fR \fITEXT\fR"
73 Insert text into given row.
74 .TP
75 .BR remove " [\fIROWS=0\fR...]"
76 Remove items in given rows.
77 .TP
78 .BR edit " [\fIROW=-1\fR...]"
79 Edit items or edit new one.
80 Value -1 is for current text in clipboard.
81
82 .sp
83 .TP
84 .BR separator " \fISEPARATOR\fR"
85 Set separator for items on output.
86 .TP
87 .BR read " [\fIMIME\fR|\fIROW\fR]..."
88 Print raw data of clipboard or item in row.
89 .TP
90 .BR write " [\fIROW=0\fR] \fIMIME\fR \fIDATA\fR [\fIMIME\fR \fIDATA\fR]..."
91 Write raw data to given row.
92
93 .sp
94 .TP
95 .BR action " [\fIROWS=0.\fR..]"
96 Show action dialog.
97 .TP
98 .BR action " [\fIROWS=0\fR...] [\fIPROGRAM\fR [\fISEPARATOR=\[rs]n\fR]]"
99 Run PROGRAM on item text in the rows.
100 Use %1 in PROGRAM to pass text as argument.
101 .TP
102 .BR popup " \fITITLE\fR \fIMESSAGE\fR [\fITIME=8000\fR]"
103 Show tray popup message for TIME milliseconds.
104
105 .sp
106 .TP
107 .B tab
108 List available tab names.
109 .TP
110 .BR tab " \fINAME\fR [\fICOMMAND\fR]"
111 Run command on tab with given name.
112 Tab is created if it doesn't exist.
113 Default is the first tab.
114 .TP
115 .BR removetab " \fINAME\fR"
116 Remove tab.
117 .TP
118 .BR renametab " \fINAME\fR \fINEW_NAME\fR"
119 Rename tab.
120
121 .sp
122 .TP
123 .BR exporttab " \fIFILE_NAME\fR"
124 Export items to file.
125 .TP
126 .BR importtab " \fIFILE_NAME\fR"
127 Import items from file.
128
129 .sp
130 .TP
131 .B config
132 List all options.
133 .TP
134 .BR config " \fIOPTION\fR"
135 Get option value.
136 .TP
137 .BR config " \fIOPTION\fR \fIVALUE\fR"
138 Set option value.
139
140 .sp
141 .TP
142 .BR eval ", " \-e " [\fISCRIPT\fR] [\fIARGUMENTS\fR]..."
143 Evaluate ECMAScript program.
144 Arguments are accessible using with "arguments[0..N]".
145 .TP
146 .BR session ", " \-s ", " \-\-session " \fISESSION\fR"
147 Starts or connects to application instance with given session name.
148 .TP
149 .BR help ", " \-h ", " \-\-help " [\fICOMMAND\fR]..."
150 Print help for COMMAND or all commands.
151
152
153 .SH NOTES
154 Use \fBdash argument\fR (\fB\-\fR) to read data from standard input.
155 .sp
156 Use \fBdouble-dash argument\fR (\fB\-\-\fR) to read all following arguments without expanding escape sequences (i.e. \\n, \\t and others).
157 .sp
158 Use \fB?\fR for MIME to print available MIME types (default is "text/plain").
159
160
161 .SH EXAMPLES
162 .TP
163 Insert some texts to the history:
164 copyq add "first item" "second item" "third item"
165
166 .TP
167 Print content of the first three items:
168 copyq read 0 1 2
169 copyq separator "," read 0 1 2
170
171 .TP
172 Show current clipboard content:
173 copyq clipboard
174 copyq clipboard text/html
175 copyq clipboard \\? # lists formats in clipboard
176
177 .TP
178 Copy text to the clipboard:
179 copyq copy "Some Text"
180
181 .TP
182 Load file content into clipboard:
183 copyq copy - < file.txt
184 copyq copy text/html < index.html
185 copyq copy image/jpeg - < image.jpg
186
187 .TP
188 Create an image items:
189 copyq write image/gif - < image.gif
190 copyq write image/svg - < image.svg
191
192
193 .SH SEE ALSO
194 .B https://copyq.readthedocs.io/
195
196
197 .SH AUTHOR
198 The maintainer of CopyQ is Lukas Holecek <[email protected]>. A comprehensive list of authors and contributors is available in the AUTHORS file.
199
200 This manual page was written by GengYu Rao ([email protected]), for the Debian project (and may be used by others).