-
Notifications
You must be signed in to change notification settings - Fork 0
/
.hyper.js
326 lines (289 loc) · 10.8 KB
/
.hyper.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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
// -- hyper-stylesheet-hash:4baadcf751de7ee933eeb2d598e2e7aa --
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
// `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
cursorShape: 'BEAM',
// set to true for blinking cursor
cursorBlink: true,
// color of the text
foregroundColor: '#fff',
// terminal background color
backgroundColor: '#000',
// border color (window, tabs)
borderColor: '#333',
// custom css to embed in the main window
css: '',
// custom css to embed in the terminal window
termCSS: '',
// set to `true` (without backticks) if you're using a Linux setup that doesn't show native menus
// default: `false` on Linux, `true` on Windows (ignored on macOS)
showHamburgerMenu: '',
// set to `false` if you want to hide the minimize, maximize and close buttons
// additionally, set to `'left'` if you want them on the left, like in Ubuntu
// default: `true` on windows and Linux (ignored on macOS)
showWindowControls: '',
// custom padding (css format, i.e.: `top right bottom left`)
padding: '16px 14px 12px', // default: '12px 14px'
// the full list. if you're going to provide the full color palette,
// including the 6 x 6 color cubes and the grayscale map, just provide
// an array here instead of a color map object
colors: {
black: '#000000',
red: '#ff0000',
green: '#33ff00',
yellow: '#ffff00',
blue: '#0066ff',
magenta: '#cc00ff',
cyan: '#00ffff',
white: '#d0d0d0',
lightBlack: '#808080',
lightRed: '#ff0000',
lightGreen: '#33ff00',
lightYellow: '#ffff00',
lightBlue: '#0066ff',
lightMagenta: '#cc00ff',
lightCyan: '#00ffff',
lightWhite: '#ffffff'
},
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
// if left empty, your system's login shell will be used by default
// make sure to use a full path if the binary name doesn't work
// (e.g `C:\\Windows\\System32\\bash.exe` instead of just `bash.exe`)
// if you're using powershell, make sure to remove the `--login` below
shell: '/opt/homebrew/bin/zsh',
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
// by default ['--login'] will be used
shellArgs: ['--login'],
// for environment variables
env: {},
// set to false for no bell
// bell: 'SOUND',
bell: false,
// if true, selected text will automatically be copied to the clipboard
copyOnSelect: true,
// if true, on right click selected text will be copied or pasted if no
// selection is present (true by default on Windows)
// quickEdit: true,
// URL to custom bell
// bellSoundURL: 'http://example.com/bell.mp3',
// for advanced config flags please refer to https://hyper.is/#cfg
// https://github.com/hharnisc/hypercwd
hypercwd: {
initialWorkingDirectory: '~/Code'
},
// https://github.com/Soutar/hyperterm-summon
summon: {
hideDock: true,
hideOnBlur: false,
hotkey: 'Alt+Super+O'
},
// https://github.com/chabou/hyper-pane
paneNavigation: {
debug: false,
hotkeys: {
navigation: {
up: 'ctrl+alt+up',
down: 'ctrl+alt+down',
left: 'ctrl+alt+left',
right: 'ctrl+alt+right'
},
jump_prefix: 'ctrl+alt', // completed with 1-9 digits
permutation_modifier: 'shift', // Added to jump and navigation hotkeys for pane permutation
maximize: 'meta+enter'
},
showIndicators: true, // Show pane number
indicatorPrefix: '', // default: '^⌥'
indicatorStyle: { // Added to indicator <div>
position: 'absolute',
top: '3px',
left: '3px',
color: 'orange',
opacity: '.8',
fontSize: '9px',
},
focusOnMouseHover: false
},
// https://github.com/chabou/hyper-always-on-top
alwaysOnTop: {
default: true,
},
opacity: .99,
// https://github.com/weirdpattern/hyper-ayu-light
// https://github.com/weirdpattern/hyper-ayu-mirage
ayu: {
noBorder: true,
},
// https://github.com/magus/hyper-transparent-dynamic
hyperTransparentDynamic: {
alpha: 0.7 // default 50%
},
// https://github.com/kazushisan/hyperterm-horizon#configure
horizonTheme: 'bright', // 'bright', 'normal'
// https://github.com/SwarShah/hyper-custom-touchbar
hyperCustomTouchbar: [
{
label: 'front',
options: [
{ label: 'watch', command: 'nr watch' },
{ label: 'prod', command: 'nr prod' },
{ label: 'dev', command: 'nr dev' },
{ label: 'serve', command: 'nr serve' },
{ label: 'browserslist', command: 'npx browserslist' },
{ label: 'run', command: 'nr' },
{ label: '16', command: 'nvm use 16' },
{ label: '14', command: 'nvm use 14' },
{ label: '10', command: 'nvm use 10' },
]
},
{
label: 'npm',
options: [
{ label: 'list', command: 'npm list --depth=0' },
{ label: '🔭', command: 'npm audit' },
{ label: '💉', command: 'npm audit fix' },
{ label: '🕸', command: 'npm outdated' },
{ label: '🚛📦', command: 'ni ', prompt: true }, // alternative emoji: 🌌
{ label: '☄️', command: 'ni' }, // alternative emoji: 🌌
{ label: 'update', command: 'nu ', prompt: true },
{ label: '🗑', command: 'rm -rf node_modules' },
{ label: '🗑🧹☄️', command: 'rm -rf node_modules && rm package-lock.json && npm cache clean --force && npm install' },
{ label: 'help', command: 'npm' },
]
},
{
label: 'artisan',
options: [
{ label: 'artisan', command: 'php artisan ', prompt: true },
{ label: 'clear', command: 'php artisan optimize:clear && php artisan horizon:purge && php artisan queue:flush && php artisan telescope:clear && redis-cli flushdb' },
{ label: 'routes', command: "php artisan route:list --columns=method,name,uri,action | grep -Ev 'horizon|nova|telescope'" },
{ label: 'migrate', command: 'php artisan migrate' },
{ label: 'fresh', command: 'php artisan migrate:fresh' },
{ label: 'make', command: 'php artisan make:', prompt: true },
{ label: 'link', command: 'php artisan storage:link' },
{ label: 'up', command: 'php artisan up' },
{ label: 'down', command: 'php artisan down' },
],
},
{
label: 'composer',
options: [
{ label: 'dump-autoload', command: 'composer dump-autoload' },
{ label: '☄️', command: 'composer install' },
{ label: '🚛📦', command: 'composer require ', prompt: true },
{ label: 'show', command: 'composer show -s -t' },
{ label: '🕸', command: 'composer outdated -D' },
{ label: 'update', command: 'composer update' },
{ label: 'list', command: 'composer' },
{ label: 'diff', command: 'composer diff' },
]
},
{
label: 'valet',
options: [
{ label: 'share', command: 'valet share' },
{ label: '🔒', command: 'valet secure' },
{ label: '🔓', command: 'valet unsecure' },
{ label: 'list', command: 'valet' },
{ label: '7.4', command: 'valet use [email protected]' },
{ label: '8', command: 'valet use [email protected]' },
{ label: '8.1', command: 'valet use [email protected]' },
{ label: 'php -v', command: 'php -v' },
]
},
{
label: 'cd',
options: [
{ label: '..', command: 'cd ..' },
{ label: 'Code', command: 'cd ~/Code' },
{ label: '🖕 IE', command: 'cd ~/Code/canistop', backgroundColor: '#18bcef' },
{ label: '--', command: 'cd ~/Code/dash-dash-media.scss' },
]
},
{
label: 'git',
options: [
{ label: 'fetch', command: 'git fetch --all' },
{ label: 'diff', command: 'git diff' },
{ label: 'status', command: 'git status' },
{ label: 'log', command: 'glog' }, // see my .bashrc
{ label: 'add .', command: 'git add .' },
{ label: 'checkout', command: 'git checkout ', prompt: true },
{ label: 'push', command: 'git push' },
{ label: 'pull', command: 'git pull' },
{ label: 'clone ', command: 'git clone ', prompt: true },
{ label: 'GUI', command: 'gitup' },
]
},
{
label: '🧞♂️', // see my .bashrc
options: [
{ label: 'aliases', command: 'aliases' },
{ label: 'hosts', command: 'hostfile' },
{ label: 'ssh', command: 'sshssh && st .' },
{ label: 'navi', command: 'navi ' },
{ label: 'dotfiles', command: 'cd ~/dotfiles' },
{ label: 'show', command: 'showhiddenfiles' },
{ label: 'hide', command: 'hidehiddenfiles' },
{ label: '🌤', command: 'weather' },
{ label: '🎬', command: 'yt ', prompt: true },
{ label: '🔈', command: 'ytmp3 ', prompt: true },
]
},
{
label: '🖕',
command: 'fuck'
},
],
},
// a list of plugins to fetch and install from npm
// format: [@org/]project[#version]
// examples:
// `hyperpower`
// `@company/project`
// `project#1.0.1`
plugins: [
"hyperminimal",
"hyperterm-close-on-left",
"hyperterm-paste",
"hyperterm-summon",
"hyper-always-on-top",
"hyper-custom-touchbar",
"hyper-opacity",
"hyper-pane",
"hyper-statusline",
"hyper-stylesheet",
"hyper-vsplit-fix",
// "hyperlayout", // try later
/* dark themes */
// "hyper-github-dark-dimmed"
// "hyper-ayu-mirage",
// "hyper-tokyo-night",
"hyper-tokyo-night-storm",
// "hyper-electron-highlighter",
// "hyper-rose-pine",
// "hyper-snazzy",
// "hyper-sweet",
// "hyper-ayu",
// "verminal",
/* light themes */
// "hyper-hypest",
// "hyper-github-light",
// "hyper-ayu-light",
// "hyper-paper",
// "hyperterm-horizon",
/* Alpha transparency and vibrancy; must be after themes. */
// "hyper-transparent-dynamic",
]
}