-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathconstants.js
47 lines (33 loc) · 1.46 KB
/
constants.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
/* KEYS */
const HYPER = ['ctrl', 'alt', 'cmd'];
const HYPER_SHIFT = [...HYPER, 'shift'];
const DOUBLE_KEY_INTERVAL = 250;
/* OTHERS */
const SHELL_PATH = '/bin/zsh';
const OSASCRIPT_PATH = '/usr/bin/osascript';
const CENTER_WIDTH = 1280;
const CENTER_HEIGHT = 800;
const DEVTOOLS_SHRINK_HEIGHT = 75;
const FOCUS_WINDOW_CHECK_CYCLES = 10;
const FOCUS_WINDOW_CHECK_INTERVAL = 250;
const GROW_AMOUNT = 50;
const JSON_INDENTATION = 2;
const MODAL_APPEARANCE = 'dark';
const MODAL_DURATION = 1;
const MODAL_ANIMATION_DURATION = .2;
const MODAL_INPUT_DURATION = Infinity;
const MODAL_INPUT_ANIMATION_DURATION = MODAL_ANIMATION_DURATION / 3;
const MODAL_WEIGHT = 24;
const LEFT_WIDTH_PERCENTAGE = 40; // Set it to 50 if you want symmetric left and right sides' widths
const TOP_HEIGHT_PERCENTAGE = 50; // Set it to 50 if you want symmetric top and bottom sides' heights
const QUIT_BLACKLIST = ['Finder'];
const SNAPPING_THRESHOLD = 20;
const SPACES_SWITCH_WRAP = true;
const SPACES_OVERLAY_DURATION = MODAL_DURATION / 2;
const SPACES_LIST_RAW_PATH = '~/.config/phoenix/spaces/list_raw.json';
const SPACES_LIST_PATH = '~/.config/phoenix/spaces/list.json';
const SPACES_ALFRED_APPS = ['/Applications/Alfred 5.app', '/Applications/Alfred 4.app', '/Applications/Alfred 3.app', '/Applications/Alfred 2.app', '/Applications/Alfred.app'];
const SPACES_ALFRED_PRESELECT = true;
const SPACES_ALFRED_PRESELECT_DELAY = 0.1;
const SPACES_UPDATE_CYCLES = 5;
const SPACES_UPDATE_INTERVAL = 1000;