![]() “Offset the window on Screen 1 halfway down the screen”.The second is the offset in the Y dimension.“Offset the window on Screen 1 .5% from the left edge of the screen”.The first field is the offset on the X dimension.Now, let’s explain the screenshotted 3 macro above. If you only have one setup, you could easily replace all the percentages with actual pixel dimensions. This allows me to use them on my desk setup and my laptop. For my setup, this is monitor 1 (even though my right monitor is set up in Display Preferences as my MAIN monitor). In the above macro, the settings are for my Left monitor. This lets me peek between them and have just enough space to click on a background window if I need it. I also prefer a little space between my tiled windows. I have big 4K monitors, so I prefer a grid of 6, not a grid of 4. The presets are fine, but I have more complicated needs. ![]() It’s also helpful to just choose one and see what KM throws in the values for position and size. Just pick a half or quadrant, and you’re good to go. If you have simple needs, Keyboard Maestro provides some good presets, and you don’t have to do all the math. To get to a Move and Resize action in Keyboard Maestro, you need to first drag in a Resize a Window action, then change to Move and Resize in the dropdown. I just set it to repeat once now in case I ever need it again. I haven’t had that issue since moving to an M1 Mac mini, so I could probably get rid of it. I have these wrapped in a repeat block because when I first built them years ago, sometimes my Mac would skip a beat and not move the window, so I had it repeat twice to make sure it moved. The spatial trigger (from the number pad), the Conflict Palette trigger (for the laptop), and the Stream Deck trigger. As I mentioned before, each of these has 3 triggers. Here’s one of the macros we can walk through… They are built for side-by-side 28″ 4K monitors with the main monitor on the right, so you may need to adjust to your setup. First, if you’d like to play along, you can download my Macro Set as a starting point. GIF of the Keyboard Maestro Conflict Palette The Macros This is the way I trigger everything on my laptop when I don’t have my big keyboard. If multiple shortcuts have the same trigger, Keyboard Maestro throws up a Conflict Palette, which lets you choose an option by typing a letter or two. In addition to the Stream Deck and the spatial triggers, I set another hotkey trigger ( ⌃⌥⇧⌘-Up Arrow) on ALL the shortcuts. ![]() The purple arrows are where the macro throws the window. In this image (I use a Keychron K4 as my main keyboard, FWIW), the red box is the right monitor, the yellow box is left monitor in landscape, and the blue box is the left monitor in portrait. It seems confusing, but if you wrap your head around “the right two keys are the right monitor, the left two keys are the left monitor, and the number pad is a map” it totally makes sense (to me.) These modifier combinations also work with the Stream Deck buttons to target the left or right monitor. ⇧⌃ (Shift-Control) is the left monitor (when it’s in portrait) 2 ⌃⌥ (Control-Option) is the left monitor (when it’s in landscape) The modifiers are a bit more nuanced but still make sense. The number pad is the “map” of the screen. I hold down 2 modifiers and then hit a key on the number pad. I also have them mapped to a Stream Deck profile that has buttons for each position as well. This is used when I’m on my laptop and don’t have the number pad. I have a second hotkey trigger that triggers a conflict palette. One is my “spatial” shortcut, which is a combination of some modifiers and the number pad. They are triggered via one of two keyboard shortcuts, called a “hotkey trigger” in Keyboard Maestro. The TriggersĪll of these window positions are individual Keyboard Maestro macros. There is no UI, so you don’t see a Moom-like grid, and there’s no drag-to-the-edge action, but I run all this from my keyboard, so none of that interests me. Once everything is set up, it works just as well (better, in my opinion) in Keyboard Maestro as it does with any other dedicated app. ![]() We’ll get to the nitty-gritty in a bit, but first, let’s talk basics… A DisclaimerĪny of the tools mentioned above, and many more, can do this with less finicky pre-programming. For this post, the “more” is window management. I use it for a bunch of stuff like text replacement, UI scripting, keyboard shortcut overrides, adding keyboard shortcuts to apps that don’t have them, running scripts, performing API calls, and more. Keyboard Maestro can do eleventy-billion things. If you’re a Keyboard Maestro user, maybe you don’t need any other tools. There is Moom, Better Touch Tool, Better Snap Tool 1, Mosaic, Magnet, Veeer, and probably 40 others. There are lots of tools in the world that can manage your windows on the Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |