![]() ![]() Return true end function thunk_grid(cell) WindowFrame.h = cas(windowFrame.h, screenFrame.h * (params or 1)) WindowFrame.w = cas(windowFrame.w, screenFrame.w * (params or 1)) WindowFrame.y = cas(windowFrame.y, screenFrame.y + (screenFrame.h * (params or 0))) If old ~= new then moved = true end return newĮnd windowFrame.x = cas(windowFrame.x, screenFrame.x + (screenFrame.w * (params or 0))) Local moved = false function cas(old, new) Local window = params or hs.window.focusedWindow() Move a window to the given coordinates - top/left/width/height as a percent of the screen - window (optional) the window to move, defaults to the focused window function push(params) Pushing windows aroundįirst, to snap windows, I implemented a few functions in ~/.hammerspoon/functions/a: Sometimes to my own detriment, I like to be able to take a sane set of defaults and then tweak them how I want. Rectangle Pro - it’s… a separate app? but with “Arrange an entire workspace of apps with just one shortcut.” this might do exactly what I wantīut finally (for the time being), I came back to Hammerspoon.Rectangle - follow up to Spectacle, really is pretty much the same thing as Magnet. ![]() i3 / awesome - automatic tiling I don’t think I’m quite ready for this yet, perhaps another day?.yabai - requires disabling SIP, is CLI □ but needs another tool for keyboard shortcuts □.Divvy - works pretty well, especially for automatically tiling and grid layout, although having to specify the grid with the mouse is suboptimal.Mostly, I sent out a call for what other options there were and tried them out: Sending windows to the correct screen/desktop.the ability to automatically arrange windows to various Mission Control Spaces.a bit more control (once again), to define more arbitrary sizes and keystrokes.Since then, I eventually discovered and moved to Magnet and all was well.īut more recently, I’ve been wanting two things: I missed Aerospace–the ability to use Win+Left/Right to snap windows to half the screen–so I wrote a fix: Duplicating AeroSnap on OSX with Hammerspoon. Once upon a time, I moved from primarily Windows to primarily (at the time) OSX. Why oh why doesn’t macOS have a more powerful window manager…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |