![]() I now use the virtual position of the screen to identify the screen I want. A quick fix was applied by modifying the source files directly in my nodemodules directory which got me thinking for efficient ways to accomplish this. Finding the right screenĪlso, screens are quite difficult to identify. Background: When working on NodeJS project, I came across a bug with a third-party dependency. So I'm using a dirty workaround here: I'm using the default Shortcuts to visit spaces to switch to all spaces (I use six spaces) and note the corresponding space id. This makes it hard to identify the right space. Somehow macOS keeps shuffling space ids around with no real reason and there is currently no function to get the visible name you can configure in Mission Control. ![]() After that, it uses the positionApp function to position the windows of my applications. First, it grabs the ids for the available spaces and then it scans for available screens. PrerequisitesĮach configuration lies in its own function. With this script you will be able to move the window in halves and in corners using your keyboard and mainly using arrows. While ten years ago I would have leapt for the tiling options 1 (I still would like to give i3wm a go one of these. There is a lot of awesome Hammerspoon code to help you with that, from clones of popular Mac applications like Spectacle to complex tiling systems. This repository is a backup location for me and may be a reference for others who achieve the same thing. One of the main things people do with Hammerspoon is wrangle their window layouts. I have different window placements over the available screens and spaces on each of these configurations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |