![]() ![]() The remaining action is centering the front application window. It’s one way to avoid clutter in the “variables” section under the preferences pane. You can prepend Local to the variable to prevent Keyboard Maestro from making the variable available globally for other macros. You can access the parameter’s value respectively with %TriggerValue% and %TriggerValue% and save them as local variables. It accepts two parameters separated by a comma for width and height. By tweaking the “Resize and Center” macro, I can tell the new macro to accept width and height as the parameters to resize the window size dynamically. ![]() Keyboard Maestro lets you pass parameters when executing a macro. Using the “Trigger Macro by Name” action will show many duplicates of the “Resize and Center” macro.I have to create a new “Resize and Center” for each different default window size.I have to create a new macro group for each application that uses the “Resize and Center” macro.There are some problems with this approach: The advantage of this approach is I can set a different type of trigger for each application, such as resizing the window whenever the application activates For example, I can create a macro group called “Finder” and put an action to execute the “Resize and Center” macro in the group. Instead of assigning a global shortcut to the macro, I have to create a new macro group to selectively choose which applications to trigger the macro. It’s related to how I organize my macro groups. I have my reason to save the macro in the Global UI Control instead of creating a separate macro group for each application. The “Resize and Center” macro, available in the Global UI Control macro group, has only one task: to set the front window size to width to 1440 and height to 1000. I found out that the “Resize and Center” macro I created a long time ago was very inefficient. The idea to build this macro came up when I was cleaning my Keyboard Maestro library. Some of the productivity applications like Things and Finder are set to (960, 700). I put the browser’s default window size (1440, 1000). Rather than always viewing the application in full-screen mode, I set a default window size for each different group. After switching to iMac 27” as my main machine, I find that it requires more effort to organize the windows. With MacBook Pro, I often use the full-screen mode to take advantage of all the available screen states. What if I tell you that there is a better way to organize and resize application windows? By implementing a single action, you can set a default window size for every application on your Mac. Here's a rough version of what I want to do:Ĭhrome Window 1 on laptop screen, all other chrome windows on external screen 1, code editor on external screen 2.Ĭhrome Window 1 on leftmost space, all other chrome windows to the right of that, code editor to the right of that.įrom the bit of research I've done, I haven't been able to find if you can position windows in different spaces with Keyboard Maestro.Resizing application windows is one of the easiest macros you can create with Keyboard Maestro. ![]() The biggest complication I foresee here is that I often have multiple Chrome windows open, and each will have a different purpose. When I disconnect, the windows and spaces all get jumbled, and I have to reposition them to make sense again. I have my windows set up in a specific way for my workflow, but I also often have to disconnect from my monitors for meetings, etc. I have a MacBook Pro, and when I'm at my desk, it's open and connected to two external monitors. ![]() It looks like it might do what I want, but I can't find out for sure. I re-listened to the State of the Apps from last year, and Grey mentioned Keyboard Maestro. I'm looking for a tool to solve an annoyance I have. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |