-
Notifications
You must be signed in to change notification settings - Fork 94
/
config.js
309 lines (290 loc) · 7.3 KB
/
config.js
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
const CONFIG = {
/**
* The category, name, key, url, search path, color, icon, and quicklaunch properties for your commands.
* Icons must be added to "icons" folder and their values/names must be updated.
* If none of the specified keys are matched, the '*' key is used.
* Commands without a category don't show up in the help menu.
* Update line 11 and 13 if you prefer using Google.
*/
commands: [{
name: 'Duckduckgo',
key: '*',
url: 'https://duckduckgo.com',
search: '/?q={}'
},
{
category: 'General',
name: 'Mail',
key: 'm',
url: 'https://gmail.com',
search: '/#search/text={}',
color: 'linear-gradient(135deg, #dd5145, #dd5145)',
icon: 'mail',
quickLaunch: true,
},
{
category: 'General',
name: 'Drive',
key: 'd',
url: 'https://drive.google.com',
search: '/drive/search?q={}',
color: 'linear-gradient(135deg, #FFD04B, #1EA362, #4688F3)',
icon: 'drive',
quickLaunch: false,
},
{
category: 'General',
name: 'Telegram',
key: 'tg',
url: 'https://web.telegram.org',
color: '#5682a3',
icon: 'telegram',
quickLaunch: false,
},
{
category: 'General',
name: 'WhatsApp',
key: 'w',
url: 'https://web.whatsapp.com',
color: 'linear-gradient(135deg, #25D366, #128C7E, #075E54)',
icon: 'whatsapp',
quickLaunch: false,
},
{
category: 'General',
name: 'Discord',
key: 'dc',
url: 'https://discord.com/app',
color: '#7289da',
icon: 'discord',
quickLaunch: false,
},
{
category: 'Programming',
name: 'GitHub',
key: 'g',
url: 'https://github.com',
search: '/search?q={}',
color: 'linear-gradient(135deg, #2b2b2b, #3b3b3b)',
icon: 'github',
quickLaunch: true,
},
{
category: 'Programming',
name: 'StackOverflow',
key: 'st',
url: 'https://stackoverflow.com',
search: '/search?q={}',
color: 'linear-gradient(135deg, #53341C, #F48024)',
icon: 'stackoverflow',
quickLaunch: true,
},
{
category: 'Programming',
name: 'HackerNews',
key: 'h',
url: 'https://news.ycombinator.com/',
search: '/search?stories[query]={}',
color: 'linear-gradient(135deg, #FF6600, #DC5901)',
icon: 'hackernews',
quickLaunch: true,
},
{
category: 'Programming',
name: 'MDN',
key: 'md',
url: 'https://developer.mozilla.org/en-US',
search: '/search?q={}',
color: '#212121',
icon: 'mdn',
quickLaunch: false,
},
{
category: 'Programming',
name: 'DevDocs',
key: 'dd',
url: 'https://devdocs.io',
color: 'linear-gradient(135deg, #33373A, #484949)',
icon: 'devdocs',
quickLaunch: false,
},
{
category: 'Fun',
name: 'YouTube',
key: 'y',
url: 'https://youtube.com',
search: '/results?search_query={}',
color: 'linear-gradient(135deg, #cd201f, #cd4c1f)',
icon: 'youtube',
quickLaunch: false,
},
{
category: 'Fun',
name: 'Reddit',
key: 'r',
url: 'https://reddit.com',
search: '/search?q={}',
color: 'linear-gradient(135deg, #FF8456, #FF4500)',
icon: 'reddit',
quickLaunch: false,
},
{
category: 'Fun',
name: 'Netflix',
key: 'n',
url: 'https://www.netflix.com',
color: 'linear-gradient(135deg, #E50914, #CB020C)',
icon: 'netflix',
quickLaunch: false,
},
{
category: 'Fun',
name: 'Spotify',
key: 's',
url: 'https://open.spotify.com/',
search: '/search/{}',
color: '#1dd35e',
icon: 'spotify',
quickLaunch: false,
},
{
category: 'Fun',
name: 'Twitch',
key: 'tw',
url: 'https://www.twitch.tv',
search: '/directory/game/{}',
color: 'linear-gradient(135deg, #6441a5, #4b367c)',
icon: 'twitch',
quickLaunch: false,
},
{
category: 'Other',
name: 'Twitter',
key: 't',
url: 'https://www.twitter.com',
search: '/search?q={}&src=typed_query',
color: 'linear-gradient(135deg, #1DA1F2, #19608F)',
icon: 'twitter',
quickLaunch: true,
},
{
category: 'Other',
name: 'Instagram',
key: 'i',
url: 'https://www.instagram.com',
color: 'linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d)',
icon: 'instagram',
quickLaunch: true,
},
{
category: 'Other',
name: 'LinkedIn',
key: 'l',
url: 'https://linkedin.com',
search: '/search/results/all/?keywords={}',
color: 'linear-gradient(135deg, #006CA4, #0077B5)',
icon: 'linkedin',
quickLaunch: true,
},
{
category: 'Other',
name: 'Notion',
key: 'ns',
url: 'https://www.notion.so',
color: 'linear-gradient(135deg, #FFF, #3F3F3F)',
icon: 'notion',
quickLaunch: true,
},
{
category: 'Other',
name: 'Translate',
key: 'tr',
url: 'https://translate.google.com/',
search: '/#view=home&op=translate&sl=auto&tl=en&text={}',
color: '#1a73e8',
icon: 'translate',
quickLaunch: false,
},
],
/**
* Get suggestions as you type.
*/
suggestions: true,
suggestionsLimit: 4,
/**
* The order and limit for each suggestion influencer. An "influencer" is
* just a suggestion source. The following influencers are available:
*
* - "Commands" suggestions come from CONFIG.commands
* - "Default" suggestions come from CONFIG.defaultSuggestions
* - "DuckDuckGo" suggestions come from the duck duck go search api
* - "History" suggestions come from your previously entered queries
*/
influencers: [{
name: 'Commands',
limit: 2
},
{
name: 'Default',
limit: 4
},
{
name: 'History',
limit: 1
},
{
name: 'DuckDuckGo',
limit: 4
},
],
/**
* Default search suggestions for the specified queries.
*/
defaultSuggestions: {
g: ['g/issues', 'g/pulls', 'gist.github.com'],
r: ['r/r/unixporn', 'r/r/startpages', 'r/r/webdev', 'r/r/technology'],
},
/**
* Instantly redirect when a key is matched. Put a space before any other
* queries to prevent unwanted redirects.
*/
instantRedirect: false,
/**
* Open triggered queries in a new tab.
*/
newTab: false,
/**
* Dynamic overlay background colors when command domains are matched.
*/
colors: true,
/**
* Invert color theme
*/
invertedColors: false,
/**
* Show keys instead of icons
*/
showKeys: false,
/**
* The delimiter between a command key and your search query. For example,
* to search GitHub for potatoes, you'd type "g:potatoes".
*/
searchDelimiter: ':',
/**
* The delimiter between a command key and a path. For example, you'd type
* "r/r/unixporn" to go to "https://reddit.com/r/unixporn".
*/
pathDelimiter: '/',
/**
* The delimiter between the hours and minutes on the clock.
*/
clockDelimiter: ' ',
/**
* Show a twenty-four-hour clock instead of a twelve-hour clock with AM/PM.
*/
twentyFourHourClock: true,
/**
* File extension for icon images
*/
iconExtension: 'png'
};