Skip to content

theandrewdavis/osx-resize-shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Brings the window resizing keyboard shortcuts from Windows 7 to MacOS. Similar to SizeUp, but with fewer shortcuts. The exact keys used in Windows are already taken, so here's the keyboard shortcuts I used and their Windows equivalents:

Action Mac Windows 7
Fit window to left half of screen Command+Option+Left Windows+Left
Fit window to right half of screen Command+Option+Right Windows+Right
Fit window to whole screen Command+Option+Up Windows+Up

Install

First, download the program and launchd config file. The config file allows it to start on system boot.

curl -L -o /Applications/ResizeShortcuts https://github.com/theandrewdavis/osx-resize-shortcuts/releases/download/0.4/ResizeShortcuts
mkdir -p ~/Library/LaunchAgents
curl -L -o ~/Library/LaunchAgents/ResizeShortcuts.plist https://github.com/theandrewdavis/osx-resize-shortcuts/releases/download/0.4/ResizeShortcuts.plist
chmod ug+x /Applications/ResizeShortcuts

Then, give the program Accessibility and Input Monitoring permissions. It needs these to capture the keyboard input and resize the windows of other programs.

System Settings > Privacy & Security > Accessibility
System Settings > Privacy & Security > Input Monitoring

Finally, start the program:

launchctl load ~/Library/LaunchAgents/ResizeShortcuts.plist

Uninstall

This will un-schedule the program in launchd and delete the program files.

launchctl unload ~/Library/LaunchAgents/ResizeShortcuts.plist
rm -f /Applications/ResizeShortcuts ~/Library/LaunchAgents/ResizeShortcuts.plist

Build

xcrun clang main.c -o ResizeShortcuts -framework AppKit

References

I wrote this with the help of the several excellent code samples and references below:

About

Resize windows in OSX with keyboard shortcuts.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages