fikovnik / ShiftIt

Managing windows size and position in OSX
5.53k stars 359 forks source link

Add ability to make app 'almost' fullscreen. #295

Open ryanpcmcquen opened 5 years ago

ryanpcmcquen commented 5 years ago

ShiftIt solves 99% of my windowing needs, but I still keep Moom around for one thing, making an app 'almost' fullscreen, meaning it takes up 90% of the screen with padding on each side. I like to do this with some apps because then I can easily click over to the apps behind it. I'm not sure what you would call this, but if there was an option for this it would make ShiftIt perfect to me.

Here's what the setting looks like in Moom:

screen shot 2018-11-12 at 9 47 28 am
ryanpcmcquen commented 5 years ago

Better Window Manager also has something similar called Centered Large: screen2

derekwyatt commented 5 years ago

This can be done pretty easily with Hammerspoon. If you take a look at https://github.com/derekwyatt/dotfiles/blob/3d0887a/hammerspoon-init.lua#L71 you should see the definition of center that you can tune to your heart's content. If you want it to have a 5% border of open desktop around the app, for example, then:

center = { x = 0.05, y = 0.05, w = 0.90 h = 0.90 }
ryanpcmcquen commented 5 years ago

@derekwyatt, that is amazing! I really need to switch to HammerSpoon ...