My config for Phoenix.
This is a fairly customized/modified version of danshan/.phoenix.js with inspirations taken from fabiospampinato/phoenix.
Install Phoenix
brew install --cask phoenixAllow Phoenix in your system preferences
System Preferences → Security & Privacy → Accessibility
Download and install Karabiner-Elements:
https://karabiner-elements.pqrs.org/
Install my Karabiner-Elements configuration:
https://github.com/ezrafree/karabiner-config
Note: Whenever Phoenix is running and doesn't find a config, it will create an empty config file at
~/.phoenix.js. Make sure Phoenix is not running when you clone this repo down, and if you find your config isn't taking effect, check to see if you have an empty file at~/.phoenix.js. If you do, make sure Phoenix isn't running, delete the file, and run Phoenix again. This should allow it to pick up your config at at~/.config/phoenix.
Clone to your ~/.config/phoenix directory
Over HTTPS:
git clone https://github.com/ezrafree/phoenix-config ~/.config/phoenixOr over SSH:
git clone git@github.com:ezrafree/phoenix-config.git ~/.config/phoenixMake a copy of the example config
cd ~/.config/phoenix/config && cp example.config.js config.jsNow you can make any changes to config.js to configure.
If you run into problems, or when developing new features, you can follow the logs with:
log stream --process PhoenixWhen developing, to log objects use JSON.stringify() with Phoenix.log()
Phoenix.log('foo: ' + JSON.stringify(foo))Please note: By default the
hyperkey is the CAPS LOCK key, remapped to send control + option + command. This can be changed to your preference.
| Shortcut | Description |
|---|---|
hyper + shift + ↑ |
Move window to the top half of screen |
hyper + shift + → |
Move window to the right half of screen |
hyper + shift + ↓ |
Move window to the bottom half |
hyper + shift + ← |
Move window to the left half |
| Shortcut | Description |
|---|---|
hyper + e |
Move window to the top-left corner |
hyper + r |
Move window to the top-right corner |
hyper + a |
Move window to the bottom-left corner |
hyper + s |
Move window to the bottom-right corner |
| Shortcut | Description |
|---|---|
hyper + [ |
Move window to left percentage of screen |
hyper + d |
Move window to right percentage of screen |
hyper + shift + [ |
Move window to opposite of left percentage of screen |
hyper + shift + ] |
Move window to opposite of right percentage of screen |
| Shortcut | Description |
|---|---|
hyper + ↑ |
Move window to top percentage of screen |
hyper + ↓ |
Move window to bottom percentage of screen |
| Shortcut | Description |
|---|---|
hyper + space |
Maximize current window. |
| Shortcut | Description |
|---|---|
hyper + - |
Make the window smaller |
hyper + + |
Make the window bigger. |
| Shortcut | Description |
|---|---|
hyper + shift + c |
Center the window |
hyper + shift + c, c |
Center and resize the window |
Double-tap
c(withinDOUBLE_KEY_INTERVAL) to also resize the window.
| Shortcut | Description |
|---|---|
hyper + ← |
Move focused window to screen on the left |
hyper + → |
Move focused window to screen on the right |
⚠️ Not working on desktop... possibly this only works when there's only one screen.
| Shortcut | Description |
|---|---|
hyper + e |
Move focused window to previous space |
hyper + r |
Move focused window to next space |
Please note: Uncheck "Automatically rearrange Spaces based on most recent use" in
System Preferences > Mission Controlto enable this feature.
| Shortcut | Description |
|---|---|
hyper + d |
Move mouse focus to previous screen |
hyper + f |
Move mouse focus to next screen |
| Shortcut | Description |
|---|---|
hyper + shift + space |
Move mouse focus to center of screen |
| Shortcut | Description |
|---|---|
hyper + tab |
Focus next window in current screen |
hyper + shift + tab |
Focus previous window in current screen |
| Shortcut | Description |
|---|---|
hyper + 1 |
Open app shortcut 1 |
hyper + 2 |
Open app shortcut 2 |
hyper + 3 |
Open app shortcut 3 |
hyper + 4 |
Open app shortcut 4 |
hyper + 5 |
Open app shortcut 5 |
hyper + 6 |
Open app shortcut 6 |
You can configure which apps these shortcuts open in the config file. To disable any of them, just set it to an empty string.
To quit an application, hold down cmd and hit q twice rapidly (within 250 milliseconds by default).
You can add apps you don't want to quit to the array in the
QUIT_BLACKLISTconstant in the config file. Be sure and leave 'Finder' in this array since Finder is a special app within macOS that can't be quit.If you like, you can also configure the double key interval in the
DOUBLE_KEY_INTERVALconstant from the default of 250 milliseconds.
For development purposes, you may optionally install the node modules to enable ESLint.
yarn