Live data from Hacker News

Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

github.com

21–30 of 73 posts

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#21

Sloppy mouse focus? It’s the one feature I can never seem to find in macOS window managers. That and “highlight-to-copy” “middle-click-to-paste” are two things I really miss from an X11 environment.

yabai has a feature that allows for focus following mouse. It's a little wonky with the menu bar, but it works pretty well and replicates the X11 feel pretty well.

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#22

The API [1] is an interesting read, as well as this thread from two years ago [2]. I have used Spectacle [3] for years and recently switched to Rectangle [4]. These two are quite simple in comparison but I barely use all their features. I have seen people using HammerSpoon [5] as well for these type of things. Out of curiosity, what kind of things do people script in a window manager? [1] https://github.com/kasper/ph…

Pretty happy with spectacle overall. One thing I sorely miss from i3 however is the ability to switch focus to panes/windows/apps with the keyboard. Even something as next/prev window seems impossible on Mac (or I couldn’t work out a solution). I think you can cycle through apps(?), but not windows/panes in a logical order as far as I’m aware.

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#23
post #6

The window api makes me think one could pretty easily create an i3 like window manager. But my past experience with OSX window managers like amethyst has been subpar. Often the sizing/positioning is taken more as a “suggestion” by the window than a command. I also found eventually windows would get into a bad state. Has window management on OSX improved in the past couple years? On Linux with X11, window managers tru…

I love i3. I wish I could get something like it for the Mac. I love it so much I might ditch my Mac for a Linux laptop. Regarding Phoenix I use magnet on the Mac which gets pretty much this. Though this is probably much more customizable. Link: https://apps.apple.com/us/app/magnet/id441258766?mt=12

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#24
post #9
post #6

The window api makes me think one could pretty easily create an i3 like window manager. But my past experience with OSX window managers like amethyst has been subpar. Often the sizing/positioning is taken more as a “suggestion” by the window than a command. I also found eventually windows would get into a bad state. Has window management on OSX improved in the past couple years? On Linux with X11, window managers tru…

I have had a pretty stable setup using yabai[0] for my wm and skhd[1] for my hotkey daemon. Both are by the same dev and I have nothing but good things to say about them. Occasionally windows will get in a wonky state, but I have a hot key to reset them. It is usually stable for a week+ [0] https://github.com/koekeishiya/yabai [1] https://github.com/koekeishiya/skhd

I've been using yabai as well! I was wondering if it was possible to replicate iTerm2's dedicated hotkey window [1] for other applications (primarily firefox) using yabai/skhd?

[1] https://www.iterm2.com/documentation-hotkey.html

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#25
post #6

The window api makes me think one could pretty easily create an i3 like window manager. But my past experience with OSX window managers like amethyst has been subpar. Often the sizing/positioning is taken more as a “suggestion” by the window than a command. I also found eventually windows would get into a bad state. Has window management on OSX improved in the past couple years? On Linux with X11, window managers tru…

I have good success with yabai: https://github.com/koekeishiya/yabai

Yeah I’ll check it I it after the many testimonials here but m leery about having to disable system integrity protection even temporarily

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#26

The API [1] is an interesting read, as well as this thread from two years ago [2]. I have used Spectacle [3] for years and recently switched to Rectangle [4]. These two are quite simple in comparison but I barely use all their features. I have seen people using HammerSpoon [5] as well for these type of things. Out of curiosity, what kind of things do people script in a window manager? [1] https://github.com/kasper/ph…

> Out of curiosity, what kind of things do people script in a window manager? KWin is scriptable, and I use it to change window shading behavior and to do some tiling. At one point I had it send SIGSTOP to processes that I minimized, and SIGCONT when they were raised, to save battery life.

Oh man that is a nice little life hack!

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#27

The API [1] is an interesting read, as well as this thread from two years ago [2]. I have used Spectacle [3] for years and recently switched to Rectangle [4]. These two are quite simple in comparison but I barely use all their features. I have seen people using HammerSpoon [5] as well for these type of things. Out of curiosity, what kind of things do people script in a window manager? [1] https://github.com/kasper/ph…

Pretty happy with spectacle overall. One thing I sorely miss from i3 however is the ability to switch focus to panes/windows/apps with the keyboard. Even something as next/prev window seems impossible on Mac (or I couldn’t work out a solution). I think you can cycle through apps(?), but not windows/panes in a logical order as far as I’m aware.

Cmd+Backtick (next to 1 key) lets you swap between windows of the same application. Is that what you're looking for?

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#28
post #3

Not to be confused with Phoenix[0], the Rails-like web framework for Elixir/Erlang. [0]: https://www.phoenixframework.org

I don't think anyone will be confused... seeing as it's also the name of about a billion other things (Pre-Firefox, I still remember you!). I feel like "Pheonix" is the second most common project name behind "Matrix". And on a less nit-pick-y note if the author is reading this - the project looks really fun and is certainly going to take up a chunk of my weekend!

Cool! Let me know what you come up with. :)

Re: Show HN: Phoenix – a macOS window and app manager scriptable with JavaScript

#30

The API [1] is an interesting read, as well as this thread from two years ago [2]. I have used Spectacle [3] for years and recently switched to Rectangle [4]. These two are quite simple in comparison but I barely use all their features. I have seen people using HammerSpoon [5] as well for these type of things. Out of curiosity, what kind of things do people script in a window manager? [1] https://github.com/kasper/ph…

I'm using Hammerspoon on MaOS to give me a semi-tileable windows interface. Here is my config:

    local hyper = {"ctrl", "alt", "cmd"}

    hs.loadSpoon("MiroWindowsManager")

    hs.window.animationDuration = 0.3
    spoon.MiroWindowsManager:bindHotkeys({
      up = {hyper, "up"},
      right = {hyper, "right"},
      down = {hyper, "down"},
      left = {hyper, "left"},
      fullscreen = {hyper, "f"}
    })

    -- https://github.com/miromannino/miro-windows-manager
This allows me to place any MacOS window in either a horizontal or vertical third, or a quadrant, or a half, perfectly divided in such a way that I can maximise use of my screen while running multiple apps. My most common work environment is to have a terminal on one half of the screen, docs on the other - or two terms on top of each other on one side, docs on the other.

This is so useful for me that I yearn to make the same hotkeys work on my Linux machine, but I haven't worked out what window manager I want to use to do it .. probably Awesome of course, but I'd love to be able to use the same Hammerspoon scripts (Lua) somehow ..

Post reply on HN