JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q40685F
  • License MIT

Hyper mac-like window controls on linux or windows

Package Exports

  • hyper-mac-controls
  • hyper-mac-controls/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hyper-mac-controls) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hyper-mac-controls! npm-version

A plugin that makes the close, minimize and maximize buttons look like the macOS window controls. This plugin is tested in both linux and windows.

hyper-mac-controls

Install

Hyper store:
Install using hyper i hyper-mac-controls

Manually:

  1. Open Hyper preferences (or edit them manually at ~/.hyper.js with your editor).
  2. Update your list of plugins to include hyper-mac-controls, like so:
plugins: [
    'hyper-mac-controls'
],
  1. Reload (Ctrl+Shift+R) or restart Hyper

Config

It makes use of showWindowControls to determine where to place the controls. To move the controls to the left side, change your config to the following:

module.exports = {
  config: {
    ...
    showWindowControls: 'left',
    ...
  }
}

Flip controls
Default value is true

module.exports = {
  config: {
    ...
      hyperMacControls: {
        flipped: true,
      }
    ...
  }
}

Changelog

1.2.0

  • Fixed issue with latest version of HyperJS

1.1.2

  • Add flipped versions again (see config option above)

1.1.0

  • Update to work with Hyper 2.0
  • Remove flipped versions (they are on my todo)
  • Remove package specific config options and make use of showWindowControls instead.

1.0.4

  • Add left and right-flipped options

License

MIT © krve