-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopyq.conf
487 lines (481 loc) · 14.5 KB
/
copyq.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
[General]
plugin_priority=itemimage, itemencrypted, itemfakevim, itemnotes, itempinned, itemsync, itemtags, itemtext
[Commands]
1\Command="copyq:\nvar indent = 4\n\nfunction fromData(data)\n{\n var text = str(data)\n if ( data.equals(new ByteArray(text)) ) {\n if (text.indexOf('\\n') == -1)\n return text\n return { lines: text.split('\\n') }\n }\n return { base64: toBase64(data) }\n}\n\nvar itemsData = selectedItemsData()\nfor (var i in itemsData) {\n var itemData = itemsData[i]\n for (var format in itemData)\n itemData[format] = fromData(itemData[format])\n}\n\nvar text = JSON.stringify(itemsData, null, indent)\ncopy('{ \"copyq_items\": ' + text + ' }')"
1\Display=true
1\Enable=false
1\Icon=\xf2f5
1\InMenu=true
1\Name=Copy Items as JSON
10\Automatic=true
10\Command="copyq:\nvar window = str(data('application/x-copyq-owner-window-title'))\nvar tagsMime = 'application/x-copyq-tags'\nvar tags = str(data(tagsMime)) + ', ' + window\nsetData(tagsMime, tags)"
10\Icon=\xf009
10\Name=Store Window Title
11\Enable=false
11\Icon=\xf03e
11\InMenu=true
11\Input=image/png
11\Name=Move Images to Other Tab
11\Remove=true
11\Tab=&Images
12\Command=copyq: menu()
12\GlobalShortcut=ctrl+alt+h
12\Icon=\xf01c
12\IsGlobalShortcut=true
12\Name=Show the tray menu
13\Command=copyq: toggle()
13\GlobalShortcut=ctrl+alt+p
13\Icon=\xf022
13\IsGlobalShortcut=true
13\Name=Show/hide main window
14\Command=copyq: plugins.itemencrypted.encryptItems()
14\Enable=false
14\Icon=\xf023
14\InMenu=true
14\Input=!OUTPUT
14\Name=Encrypt (needs GnuPG)
14\Output=application/x-copyq-encrypted
14\Shortcut=ctrl+l
15\Command=copyq: plugins.itemencrypted.decryptItems()
15\Enable=false
15\Icon=\xf09c
15\InMenu=true
15\Input=application/x-copyq-encrypted
15\Name=Decrypt
15\Output=application/x-copyq-item
15\Shortcut=ctrl+l
16\Command=copyq: plugins.itemencrypted.copyEncryptedItems()
16\Enable=false
16\Icon=\xf13e
16\InMenu=true
16\Input=application/x-copyq-encrypted
16\Name=Decrypt and Copy
16\Shortcut=ctrl+shift+l
17\Command=copyq: plugins.itemencrypted.pasteEncryptedItems()
17\Enable=false
17\Icon=\xf13e
17\InMenu=true
17\Input=application/x-copyq-encrypted
17\Name=Decrypt and Paste
17\Shortcut=enter
18\Command=copyq open %1
18\HideWindow=true
18\Icon=\xf0ac
18\InMenu=true
18\Name=Open in &Browser
18\Shortcut=alt+b
19\Command="copyq: \nvar text = clipboard()\ncopy(text)\ncopySelection(text)\npaste()"
19\Enable=false
19\Icon=\xf0ea
19\IsGlobalShortcut=true
19\Name=Paste clipboard as plain text
2\Command="copyq: \ncopy('Hello, World!')\nadd('Hello, World!')\npaste()"
2\GlobalShortcut=meta+ctrl+alt+v
2\Icon=\xf2f6
2\InMenu=true
2\IsGlobalShortcut=true
2\MatchCommand=copyq: str(clipboard()).match(/^{ \"copyq_items\": \\[\\n/) || fail()
2\Name=Paste Joined with Comma
20\Command="copyq:\nvar text = input()\ncopy(text)\ncopySelection(text)\npaste()"
20\Enable=false
20\GlobalShortcut=ctrl+l
20\HideWindow=true
20\Icon=\xf0ea
20\InMenu=true
20\Input=text/plain
20\IsGlobalShortcut=true
20\Name=Paste as Plain Text
20\OutputTab=&clipboard
21\Command=copyq: showAt()
21\GlobalShortcut=meta+ctrl+p
21\Icon=\xf022
21\IsGlobalShortcut=true
21\Name=Show main window under mouse cursor
22\Command="copyq: \nvar imageData = screenshotSelect()\nwrite('image/png', imageData)\ncopy('image/png', imageData)\n"
22\GlobalShortcut=print
22\Icon=\xf030
22\IsGlobalShortcut=true
22\Name=Take screenshot
23\Icon=\xf1f8
23\InMenu=true
23\Name=Move to Trash
23\Remove=true
23\Shortcut=ctrl+x
23\Tab=(trash)
24\Command=copyq: plugins.itempinned.pin()
24\Icon=\xf08d
24\InMenu=true
24\Input=!OUTPUT
24\Name=Pin
24\Output=application/x-copyq-item-pinned
25\Command=copyq: plugins.itempinned.unpin()
25\Icon=\xf08d
25\InMenu=true
25\Input=application/x-copyq-item-pinned
25\Name=Unpin
26\Command=copyq: plugins.itemtags.tag(decodeURIComponent('%5C1'))
26\Icon=\xf02b
26\InMenu=true
26\MatchCommand=copyq: plugins.itemtags.hasTag(decodeURIComponent('%5C1')) && fail()
26\Name=Tag as \x201c\\1\x201d
27\Command=copyq: plugins.itemtags.untag(decodeURIComponent('%5C1'))
27\Icon=\xf02b
27\InMenu=true
27\MatchCommand=copyq: plugins.itemtags.hasTag(decodeURIComponent('%5C1')) || fail()
27\Name=Remove tag \x201c\\1\x201d
28\Command=copyq: plugins.itemtags.untag()
28\Icon=\xf02b
28\InMenu=true
28\Input=application/x-copyq-tags
28\Name=Remove a Tag
29\Command=copyq: plugins.itemtags.clearTags()
29\Icon=\xf02b
29\InMenu=true
29\Input=application/x-copyq-tags
29\Name=Clear all tags
3\Command="copyq:\nvar language = 'eng'\n\nvar imageData = input()\nvar result = execute('tesseract', '--list-langs')\nvar languages = str(result.stdout).split('\\n').slice(1)\n\nresult = execute('tesseract', '-l', language, 'stdin', 'stdout', null, data('image/png'))\nadd(result.stdout)\ncopy(result.stdout)"
3\Enable=false
3\Icon=\xf1ea
3\InMenu=true
3\IsGlobalShortcut=true
3\Name=Copy Text from Image (&OCR)
4\Command="import png:- | convert png:- -colorspace Gray -depth 8 -resample 200x200 tif:- | copyq:\nvar language = 'eng'\n\nvar imageData = input()\nvar result = execute('tesseract', '--list-langs')\nvar languages = str(result.stdout).split('\\n').slice(1)\n\nresult = execute('tesseract', '-l', language, 'stdin', 'stdout', null, imageData)\nadd(result.stdout)\ncopy(result.stdout)"
4\GlobalShortcut=alt+shift+t
4\Icon=\xf1ea
4\IsGlobalShortcut=true
4\Name=Copy Text from Screen Selection
5\Command="copyq: paste();"
5\GlobalShortcut=meta+v
5\Icon=\xf0ab
5\IsGlobalShortcut=true
5\Name=Paste non-plain
6\Automatic=true
6\Command="copyq: execute(\"/usr/bin/vlc\", clipboard())\n"
6\Icon=\xf15b
6\InMenu=true
6\Match=^https://.*.youtube.com/.*
6\Name=YouTube2Vlc
6\Shortcut=alt+v
7\Automatic=true
7\Command=copyq open %1
7\Enable=false
7\HideWindow=true
7\Icon=\xf144
7\InMenu=true
7\Match=^http://.*\\.(mp4|avi|mkv|wmv|flv|ogv)$
7\Name=Autoplay videos
8\Command=copyq: plugins.itemtags.tag()
8\Icon=\xf02b
8\InMenu=true
8\Name=Add a Tag
8\Shortcut=f2
9\Automatic=true
9\Command="copyq:\nvar time = dateString('yyyy-MM-dd hh:mm:ss')\nsetData('application/x-copyq-user-copy-time', time)\n\nvar tagsMime = 'application/x-copyq-tags'\nvar tags = str(data(tagsMime)) + ', ' + time\nsetData(tagsMime, tags)"
9\Icon=\xf017
9\Name=Store Copy Time
size=29
[Options]
action_has_input=false
action_has_output=false
action_output_tab=
action_separator=\\n
activate_closes=true
activate_focuses=true
activate_item_with_single_click=true
activate_pastes=true
always_on_top=false
autocompletion=true
autostart=true
change_clipboard_owner_delay_ms=150
check_clipboard=true
check_selection=false
clipboard_notification_lines=4
clipboard_tab=&Clipboard
close_on_unfocus=false
close_on_unfocus_delay_ms=500
command_history_size=100
confirm_exit=true
copy_clipboard=true
copy_selection=false
disable_tray=false
edit_ctrl_return=true
editor=kitty nvim \"+set nofixendofline\" %1
expire_tab=0
filter_case_insensitive=true
filter_regular_expression=false
hide_main_window=false
hide_main_window_in_task_bar=false
hide_tabs=false
hide_toolbar=true
hide_toolbar_labels=false
item_data_threshold=1024
item_popup_interval=1
language=en
max_process_manager_rows=1000
maxitems=9999
move=true
native_menu_bar=true
native_notifications=true
native_tray_menu=false
notification_horizontal_offset=10
notification_maximum_height=200
notification_maximum_width=400
notification_position=5
notification_vertical_offset=10
number_search=true
open_windows_on_current_screen=true
restore_geometry=true
row_index_from_one=true
run_selection=true
save_delay_ms_on_item_added=300000
save_delay_ms_on_item_edited=1000
save_delay_ms_on_item_modified=300000
save_delay_ms_on_item_moved=1800000
save_delay_ms_on_item_removed=600000
save_filter_history=true
save_on_app_deactivated=true
script_paste_delay_ms=250
show_advanced_command_settings=true
show_simple_items=true
show_tab_item_count=true
style=
tab_tree=false
tabs=&Clipboard, P3, &Images, &URLs, umlaut, &PPP, Why, Email, mpv, IPv4, sh, GPG
text_tab_width=8
text_wrap=false
transparency=0
transparency_focused=0
tray_commands=true
tray_images=true
tray_item_paste=true
tray_items=15
tray_menu_open_on_left_click=false
tray_tab=&Clipboard
tray_tab_is_current=false
update_clipboard_owner_delay_ms=-1
vi=true
window_key_press_time_ms=50
window_paste_with_ctrl_v_regex=
window_wait_after_raised_ms=50
window_wait_before_raise_ms=20
window_wait_for_modifier_released_ms=2000
window_wait_raised_ms=150
[Plugins]
itemdata\enabled=true
itemdata\formats=text/xml
itemdata\max_bytes=256
itemencrypted\enabled=true
itemencrypted\encrypt_tabs=
itemfakevim\enabled=true
itemfakevim\really_enable=true
itemfakevim\source_file=
itemimage\enabled=true
itemimage\image_editor=krita
itemimage\max_image_height=0
itemimage\max_image_width=0
itemimage\svg_editor=
itemnotes\enabled=true
itemnotes\icon_only=false
itemnotes\notes_at_bottom=false
itemnotes\notes_beside=true
itemnotes\show_tooltip=true
itempinned\enabled=true
itemsync\enabled=true
itemsync\format_settings=@Variant(\0\0\0\t\0\0\0\x1\0\0\0\b\0\0\0\x3\0\0\0\x10\0i\0t\0\x65\0m\0M\0i\0m\0\x65\0\0\0\n\0\0\0\x14\0t\0\x65\0x\0t\0/\0p\0l\0\x61\0i\0n\0\0\0\b\0i\0\x63\0o\0n\0\0\0\n\0\0\0\x2\xf0\x39\0\0\0\xe\0\x66\0o\0r\0m\0\x61\0t\0s\0\0\0\v\0\0\0\x2\0\0\0\b\0.\0t\0x\0t\0\0\0\n\0.\0t\0\x65\0x\0t)
itemsync\sync_tabs=P3, " /SSHFS/acn/mnt/c/Users/daniel.schaffrath/Accenture/OneDrive\\ -\\ Accenture/Desktop/SHARED_CLIPBOARD/"
itemtags\enabled=true
itemtags\tags="\\\\1;;#ffff00;;\xf140;;background: grey; border: 1px solid red; border-radius: 3px; font-size: 8pt;;(.*);;"
itemtext\default_style_sheet=
itemtext\enabled=true
itemtext\max_height=0
itemtext\max_lines=0
itemtext\use_rich_text=true
itemweb\enabled=true
itemweb\max_height=0
[Shortcuts]
about=shift+f1
change_tab_icon=
commands=ctrl+shift+p
copy_selected_items=ctrl+c
delete_item=alt+r
edit=ctrl+shift+e
edit_notes=shift+f2
editor=ctrl+e
editor_background=
editor_bold=ctrl+b
editor_cancel=esc
editor_erase_style=
editor_font=
editor_foreground=
editor_italic=ctrl+i
editor_redo=ctrl+shift+z
editor_save=f2
editor_search=ctrl+f
editor_strikethrough=
editor_underline=ctrl+u
editor_undo=ctrl+z
exit=ctrl+shift+q
export=ctrl+s
find_items=
format-next=ctrl+n
format-previous=ctrl+p
help=
import=ctrl+i
item-menu=shift+f10, alt+k
move_down=ctrl+down
move_to_bottom=ctrl+end
move_to_clipboard=ctrl+m
move_to_top=ctrl+home
move_up=ctrl+up
new=ctrl+n
new_tab=ctrl+t
next_tab=ctrl+.
paste_selected_items=ctrl+v
preferences=f1
previous_tab="ctrl+,"
process_manager=ctrl+shift+z
remove_tab=ctrl+shift+w, ctrl+w
rename_tab=ctrl+shift+t
reverse_selected_items=ctrl+shift+r
show-log=f12
show_clipboard_content=ctrl+shift+c, alt+c
show_item_content=
show_item_preview=ctrl+q
sort_selected_items=ctrl+shift+s
system-run=
toggle_clipboard_storing=
[Tabs]
=======
1\icon=\xf5cc
1\max_item_count=0
1\name=&Images
1\store_items=true
10\icon=\xf039
10\max_item_count=0
10\name=&PPP
10\store_items=true
11\icon=\xf5c2
11\max_item_count=0
11\store_items=true
12\icon=\xf039
12\max_item_count=0
12\name=&Clipboard
12\store_items=true
2\icon=
2\max_item_count=0
2\name=IPv4
2\store_items=true
3\icon=
3\max_item_count=0
3\name=mpv
3\store_items=true
4\icon=
4\max_item_count=0
4\name=&PPP
3\icon=\xf5c2
3\max_item_count=0
3\name=Email
3\store_items=true
4\icon=\xf812
4\max_item_count=0
4\name=P3
4\store_items=true
5\icon=\xf5cc
5\max_item_count=0
5\name=&URLs
5\store_items=true
6\icon=
6\max_item_count=0
6\name=GPG
6\store_items=true
7\icon=\xf039
7\max_item_count=0
7\name=Why
7\store_items=true
8\icon=\xf679
8\max_item_count=0
8\name=umlaut
8\store_items=true
9\icon=\xf812
9\max_item_count=0
9\name=P3
5\name=sh
5\store_items=true
6\icon=\xf5cc
6\max_item_count=0
6\name=&URLs
6\store_items=true
7\icon=
7\max_item_count=0
7\name=IPv4
7\store_items=true
8\icon=\xf039
8\max_item_count=0
8\name=Why
8\store_items=true
9\icon=
9\max_item_count=0
9\name=&PPP
9\store_items=true
size=12
[Theme]
alt_bg=bg
alt_item_css="\n ;border-radius: 2px\n ;background: qlineargradient(\n x1: 0, y1: 0,\n x2: 1.5, y2: 0,\n stop: 0 ${alt_bg - #100c0a},\n stop: 1 ${alt_bg}\n )\n "
bg=#f7f7f7
css=ClipboardBrowser::selected:item{outline:0px}
css_template_items=items
css_template_main_window=main_window
css_template_menu=menu
css_template_notification=notification
css_template_tooltip=tooltip
cur_item_css="\n ;border: 0.1em solid ${sel_bg}"
edit_bg=bg
edit_fg=fg - #111
edit_font="Sans,9,-1,5,50,0,0,0,0,0"
fg=#356
find_bg="rgba(0,0,0,0)"
find_fg=#08a
find_font="Sans,9,-1,5,50,0,1,0,0,0"
font="Sans,9,-1,5,50,0,0,0,0,0"
font_antialiasing=true
hover_item_css=
icon_size=16
item_css=padding:1em
item_spacing=
menu_bar_css="\n ;background: ${bg}\n ;color: ${fg}"
menu_bar_disabled_css="\n ;color: ${bg - #666}"
menu_bar_selected_css="\n ;background: ${sel_bg}\n ;color: ${sel_fg}"
menu_css="\n ;border: 1px solid ${sel_bg}\n ;background: ${bg}\n ;color: ${fg}"
notes_bg=bg
notes_css=
notes_fg=#222
notes_font="Serif,10,-1,5,50,0,0,0,0,0"
notification_bg=#333
notification_fg=#ddd
notification_font=
num_fg=#586e75
num_font="Sans,7,-1,5,25,0,0,0,0,0"
num_margin=2
search_bar="\n ;background: ${edit_bg}\n ;color: ${edit_fg}\n ;border: 1px solid ${alt_bg}\n ;margin: 2px"
search_bar_focused="\n ;border: 1px solid ${sel_bg}"
sel_bg=bg + #000409 - #100
sel_fg=#234
sel_item_css="\n ;border: 1px solid ${bg - #940}\n ;border-radius: 2px\n ;background: qlineargradient(\n x1: 0, y1: 0,\n x2: 1.5, y2: 0,\n stop: 0 ${sel_bg},\n stop: 1 ${bg}\n )\n "
show_number=true
show_scrollbars=false
style_main_window=false
tab_bar_css="\n ;background: ${bg - #222}"
tab_bar_item_counter="\n ;color: ${fg - #044 + #400}\n ;font-size: 6pt"
tab_bar_scroll_buttons_css="\n ;background: ${bg - #222}\n ;color: ${fg}\n ;border: 0"
tab_bar_sel_item_counter="\n ;color: ${sel_bg - #044 + #400}"
tab_bar_tab_selected_css="\n ;padding: 0.5em\n ;background: ${bg}\n ;border: 0.05em solid ${bg}\n ;color: ${fg}"
tab_bar_tab_unselected_css="\n ;border: 0.05em solid ${bg}\n ;padding: 0.5em\n ;background: ${bg - #222}\n ;color: ${fg - #333}"
tab_tree_css="\n ;color: ${fg}\n ;background-color: ${bg}"
tab_tree_item_counter="\n ;color: ${fg - #044 + #400}\n ;font-size: 6pt"
tab_tree_sel_item_counter="\n ;color: ${sel_fg - #044 + #400}"
tab_tree_sel_item_css="\n ;color: ${sel_fg}\n ;background-color: ${sel_bg}\n ;border-radius: 2px"
tool_bar_css="\n ;color: ${fg}\n ;background-color: ${bg}\n ;border: 0"
tool_button_css="\n ;color: ${fg}\n ;background: ${bg}\n ;border: 0\n ;border-radius: 2px"
tool_button_pressed_css="\n ;background: ${sel_bg}"
tool_button_selected_css="\n ;background: ${sel_bg - #222}\n ;color: ${sel_fg}\n ;border: 1px solid ${sel_bg}"
use_system_icons=false