News for hackers. Stuff that matters.
Re:Time to Upgrade Your Monitor by lemming on Wednesday June 17, 2020 @09:59PM (#23559008)
How do you manage multiple monitors with MacOS? I was doing this until recently and every single login involved rearranging my windows because MacOS moves them all to whatever display woke up first.

I finally got sick of this and wrote a Hammerspoon script to deal with this. The config looks like this:

      local dualLayout = {
          {"Firefox",       nil,         primary,   topLeft,             nil, nil},
          {"Preview",       nil,         primary,   topLeft,             nil, nil},
          {"Sublime Text",  nil,         secondary, topHalf,             nil, nil},
          {"Slack",         nil,         secondary, topRight,            nil, nil},
          {"Notes",         nil,         secondary, topRight,            nil, nil},
          {"iTerm2",        nil,         secondary, topRight,            nil, nil},
          {"Safari",        nil,         secondary, topRight,            nil, nil},
          {"IntelliJ IDEA", "cursive",   primary,   hs.layout.maximized, nil, nil},
          {"IntelliJ IDEA", "community", secondary, hs.layout.maximized, nil, nil},
      }
Now when I connect my two external monitors, a quick Ctrl-Alt-Cmd-R lays everything out. It's crap that I have to, but it saved my sanity.
Re:Time to Upgrade Your Monitor by mulmen on Wednesday June 17, 2020 @10:12PM (#23559105)
This is really cool, thanks.

I tend to have one space per task and have at least a Firefox and an iTerm on every one.

Just running a single monitor is the way to go for me. The benefits of multiple monitors just doesn't make up for all the fiddling.