Skip to content

Enhance the macOS zoom button so clicking maximizes or restores the window, and holding ⌘ makes it fullscreen.

License

Notifications You must be signed in to change notification settings

aspauldingcode/zoomer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zoomer

Zoomer is a macOS tweak that replaces the native "Fullscreen" (Green Button) behavior with a "Zoom to Display" action. Maximize as it should be!

License

Zoomer in action

Installation

make install

Usage

Simply click the green button on any standard macOS window to zoom to display size. Click again to return to original size before zoom.

To enter native Fullscreen, hold the Option (CMD) key and click the green button.

Uninstall

make uninstall

Requirements

  • macOS (tested on Tahoe)
  • Ammonia injection system installed (requires SIP disabled)

System Security Settings

For Ammonia injection to work, System Integrity Protection (SIP) must be disabled.

How It Works

  • _zoomButtonIsFullScreenButton: Swizzled to return NO (Zoom) unless Option is held.
  • zoom:: Swizzled to maximize window width to the screen's visible frame.

License

Licensed under the MIT License.

Acknowledgments

  • Ammonia for the injection framework
  • ZKSwizzle for the swizzling implementation

About

Enhance the macOS zoom button so clicking maximizes or restores the window, and holding ⌘ makes it fullscreen.

Resources

License

Stars

Watchers

Forks

Packages

No packages published