-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdot_hyper.js.tmpl
272 lines (226 loc) · 7.87 KB
/
dot_hyper.js.tmpl
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
// -*-mode:javascript-*- vim:ft=javascript
// ~/.hyper.js
// ============================================================================
// Hyper Terminal configuration file.
//
// On Windows, this file will be copied to `$Env:AppData/Hyper/.hyper.js` after
// `chezmoi apply` by the script `./run_hyper.bat.tmpl`.
//
// See https://hyper.is#cfg for all currently supported options.
//
// {{- /* This file supports Go's text/template language. */}}
module.exports = {
config: {
// Set either `stable` for receiving highly polished,
// or `canary` for less polished but more frequent updates.
updateChannel: 'stable',
// Set default font size in pixels for all tabs.
fontSize: '{{ if eq .chezmoi.os "darwin" -}} 12 {{- else -}} 14 {{- end }}',
// Set preferred font family with optional fallbacks.
fontFamily: '"SauceCodePro NF", "SauceCodePro Nerd Font Mono", "Delugia Nerd Font", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// Set default font weight: `normal` or `bold`.
fontWeight: 'normal',
// Set font weight for bold characters: `normal`` or `bold`.
fontWeightBold: 'bold',
// Set line height as a relative unit.
lineHeight: 1,
// Set letter spacing as a relative unit.
letterSpacing: 0,
// Set terminal cursor background color and opacity
// (hex, rgb, hsl, hsv, hwb or cmyk);
cursorColor: 'rgba(248,28,229,0.8)',
// Terminal text color under BLOCK cursor.
cursorAccentColor: '#000',
// Set cursor style: `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █.
cursorShape: 'BLOCK',
// Make the cussor blink.
cursorBlink: true,
// Set text color.
foregroundColor: '#fff',
// Set terminal background color. Opacity is only supported on macOS.
backgroundColor: '#000',
// Set terminal selection color.
selectionColor: 'rgba(248,28,229,0.3)',
// Set border color (window, tabs).
borderColor: '#333',
// Define custom CSS to embed in the main window.
css: '',
// Define custom CSS to embed in the terminal window.
termCSS: '',
// Set custom startup directory (must be an absolute path).
workingDirectory: '',
// Show a menu icon.
// Default '': `true` on Linux, `true` on Windows, ignored on macOS.
// If you're using a Linux setup which show native menus, set to false.
showHamburgerMenu: '',
// Show minimize, maximize and close buttons.
// Set to `left` if you want them on the left, like in Ubunt.u
// Default '': `true` on Windows and Linux, ignored on macOS.
showWindowControls: '',
// Set custom padding (CSS format, i.e.: `top right bottom left`).
padding: '12px 14px',
// Define the color palette.
// 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: '#C51E14',
green: '#1DC121',
yellow: '#C7C329',
blue: '#0A2FC4',
magenta: '#C839C5',
cyan: '#20C5C6',
white: '#C7C7C7',
lightBlack: '#686868',
lightRed: '#FD6F6B',
lightGreen: '#67F86F',
lightYellow: '#FFFA72',
lightBlue: '#6A76FB',
lightMagenta: '#FD7CFC',
lightCyan: '#68FDFE',
lightWhite: '#FFFFFF',
limeGreen: '#32CD32',
lightCoral: '#F08080',
},
// Deine which shell to run when spawning a new session.
// If left empty, your system's login shell will be used by default.
//
// Windows:
// - Make sure to use a full path if the binary name doesn't work
// - Remove `--login` in shellArgs
//
// Bash:
// - `bash`
// - `/bin/bash`
// - `/usr/local/bin/bash`
// - `C:\\Windows\\System32\\bash.exe`
// - `C:\\Program Files\\Git\\git-cmd.exe`
// - `C:\\cygwin64\\bin\\bash.exe`
//
// CMD:
// - `C:\\WINDOWS\\system32\\cmd.exe`
//
// Fish:
// - `/usr/local/bin/fish`
//
// PowerShell on Windows:
// - `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
//
// PowerShell Core:
// - `pwsh`
// - `/usr/local/bin/pwsh`
// - `C:\\Program Files\\PowerShell\\6\\pwsh.exe`
//
// Windows Subsystem for Linux (previously Bash on Windows):
// - `C:\\Windows\\System32\\wsl.exe`
//
// Zsh:
// - `zsh`
// - `/bin/zsh`
shell: '{{ if eq .chezmoi.os "windows" -}} pwsh {{- else -}} bash {{- end }}',
// Define any shell arguments.
// Default `['--login']`.
// For interactive: `['-i']`.
// Set to [] for Windows.
shellArgs: ['{{ if ne .chezmoi.os "windows" -}} --login {{- end }}'],
// Declare environment variables.
env: {},
// Set the warning type: `SOUND` for audible bell, `false` to disable.
bell: 'SOUND',
// Select a local sound file (absolute file path or URL).
// bellSoundURL: '/path/to/sound/file',
// Automatically copy selected text to the clipboard.
copyOnSelect: false,
// Set hyper as as the default protocol client for SSH.
defaultSSHApp: true,
// Use the right click to copy selected text, or paste clipboard if no
// selection is present.
// Default: `true` on Windows and disables the context menu feature.
quickEdit: false,
// Define selection type when Option key is held.
// Choose `vertical` if you want the column mode when Option key is held
// during selection (Default),
// or `force` if you want to force selection regardless of whether the
// terminal is in mouse events mode (inside tmux or vim with mouse mode
// enabled for example).
macOptionSelectionMode: 'vertical',
// Use the WebGL renderer.
// Set to false to use canvas-based rendering (slower, but supports
// transparent backgrounds).
webGLRenderer: true,
// Ignore ligatures provided by some fonts.
disableLigatures: false,
// Configure the Status line plugin.
// See https://github.com/Hyperline/hyperline
hyperline: {
// List names and order of plugins to enable.
plugins: [
"ip",
"memory",
"cpu",
"network"
]
},
// Configure the Enhanced Tabs plugin.
// See https://github.com/henrikdahl/hyper-tabs-enhanced
hyperTabs: {
// Set activity color.
// activityColor: 'salmon',
// Show activity indicator.
// Default is `true`.
activityPulse: true,
// Enable the border.
// Default is `false`.
border: true,
// Position the close button.
// Default is `left`.
closeAlign: 'right',
// Add colors to tab icons.
// Default is `false`.
tabIconsColored: false,
// Show minimize, maximize and close buttons.
// Default is `false`.
trafficButtons: true
},
// Configure the Hyper Monokai Deluxe theme.
// See https://github.com/hummal/hyper-monokai-deluxe
monokaiDeluxe: {
// Adjust the thickness of the border around the whole window.
// Default: `2px`.
borderWidth: '3px',
// Select theme: 'default', 'reloaded'.
theme: 'default'
}
},
// List plugins to fetch and install from npm.
// format: [@org/]project[#version]
// examples:
// `hyperpower`
// `@company/project`
// `project#1.0.1`
plugins: [
"hyper-active-tab",
"hyper-dark-scrollbar",
"hyper-highlight-active-pane",
"hyper-monokai-deluxe",
"hyper-pane",
"hyper-quit",
"hyper-reorderable-tabs",
"hyper-savetext",
"hyper-search",
"hyper-statusline",
// "hyper-tabs-enhanced",
"hypercwd",
// "hyperline",
"hyperterm-paste"
],
// List folders of manually installed plugins.
// In development, you can create a directory under `~/.hyper_plugins/local/`
// and include it here to load it and avoid it being `npm install`ed.
localPlugins: [],
// Define custom key mappings.
keymaps: {
// 'window:devtools': 'cmd+alt+o',
},
};