diff --git a/README.md b/README.md index d43b477..a01c96d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ The definition of `hyper` and `hyperShift` can be found in [src/config.ts](src/c * `hyperShift + Right` (Move window to right edge of screen) * `hyperShift + Up` (Move window to top edge of screen) * `hyperShift + Down` (Move window to bottom edge of screen) -* `hyperShift + Return` (Move window to center of screen) +* `hyperShift + Return` (Toggle window fullscreen, i.e. separate space) +* `hyperShift + Space` (Move window to center of screen) * `hyperShift + Tab` (Jump to next screen whilst maintaining current window size) Use combos of the key bindings to further place the windows: diff --git a/src/phoenix.ts b/src/phoenix.ts index 8cf0910..00e2b22 100644 --- a/src/phoenix.ts +++ b/src/phoenix.ts @@ -375,6 +375,14 @@ onKey('return', hyperShift, () => { if (!win) { return; } + win.setFullScreen(!win.isFullScreen()); +}); + +onKey('space', hyperShift, () => { + const win = Window.focused(); + if (!win) { + return; + } const {width, height} = win.frame(); const {