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:
⇪is referred to as your "hyper" key. By default this is set to the CAPS LOCK key, but can be modified to your preferences.
| Shortcut | Description |
|---|---|
⇪ + shift + ↑ |
Move window to the top half of screen |
⇪ + shift + → |
Move window to the right half of screen |
⇪ + shift + ↓ |
Move window to the bottom half |
⇪ + shift + ← |
Move window to the left half |
| Shortcut | Description |
|---|---|
⇪ + e |
Move window to the top-left corner |
⇪ + r |
Move window to the top-right corner |
⇪ + d |
Move window to the bottom-left corner |
⇪ + f |
Move window to the bottom-right corner |
| Shortcut | Description |
|---|---|
⇪ + [ |
Move window to left percentage of screen |
⇪ + ] |
Move window to right percentage of screen |
⇪ + shift + [ |
Move window to opposite of left percentage of screen |
⇪ + shift + ] |
Move window to opposite of right percentage of screen |
| Shortcut | Description |
|---|---|
⇪ + space |
Toggle window expansion to fill the space |
| Shortcut | Description |
|---|---|
⇪ + x |
Center the window |
⇪ + shift + x |
Center and resize the window |
| Shortcut | Description |
|---|---|
⇪ + left |
Move focused window to screen on the left |
⇪ + right |
Move focused window to screen on the right |
| Shortcut | Description |
|---|---|
⇪ + q |
Move focused window to previous space |
⇪ + w |
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 |
|---|---|
⇪ + a |
Move mouse focus to previous screen |
⇪ + s |
Move mouse focus to next screen |
| Shortcut | Description |
|---|---|
⇪ + tab |
Focus next window in current screen |
⇪ + shift + tab |
Focus previous window in current screen |
| Shortcut | Description |
|---|---|
⇪ + 1 |
Open app shortcut 1 |
⇪ + 2 |
Open app shortcut 2 |
⇪ + 3 |
Open app shortcut 3 |
⇪ + 4 |
Open app shortcut 4 |
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