Skip to content
Marc Hertzog edited this page Nov 22, 2016 · 117 revisions

Wiki for Phoenix

Getting Started

Below you will find a basic configuration example. Copy and paste it to ~/.phoenix.js. When you press the key combination Ctrl + Shift + Z on your keyboard, the focused window will be moved to the centre of your main screen.

Key.on('z', [ 'ctrl', 'shift' ], function () {

  var screen = Screen.main().flippedVisibleFrame();
  var window = Window.focused();

  if (window) {
    window.setTopLeft({
      x: screen.x + (screen.width / 2) - (window.frame().width / 2),
      y: screen.y + (screen.height / 2) - (window.frame().height / 2)
    });
  }
});

For more, see the API documentation or some screenshots.

Upgrading

Examples

Feel free to add your own configuration to show other people the nice things you can do. You can also use GitHub search to find more examples.

Stable (2.2–)

Archive (2.0–)

  • @shayne’s configuration — Xmonad/Amethyst inspired implementation (FlowType, Babel)
  • @jasonm23’s configuration — literate CoffeeScript
  • @watsoncj’s configuration — grid layout and focus key bindings
  • @jiexi’s configuration — Windows-like window management bindings

Archive (1.5)

Clone this wiki locally