This looks great, but my favourite thing might be the Principles section:
> Hydra must be stable. It should never crash
> Hydra must be lightweight... never use more than 10 MB of memory
> API should be completely transparent
> API must not be bloated
I think these principles should be the standard to which we all hold our software. Looking forward to testing this out!
Edit to say: it would be really great to see some more complete code samples but I'm sure that'll come in time.
Can you give an example of the kinds of samples you would like to see, and where you would look for them? (I presume under the Examples section on the README page?) That will help me know what to put there.
You have a link to your own config and some screenshots of it in action, maybe it would be good to pull out the relevant sections of your config so people can replicate what they see in the screenshots?
I don't even feel confident in that claim. If keeping memory usage under 10 MB requires a significant amount of developer effort, that is effort that isn't going into something else that I might value a lot more than, say, 20 MB of RAM.
Not just developer effort, but also sometimes program runtime efficiency. RAM is cheap, RAM is pretty fast (compared to disk or network); cache shit there when it makes sense to do so for overall efficiency.
10MB is a fairly ridiculous modern standard to limit yourself to, IMO (and I started on the C64 and generally do dislike and try to avoid bloat).
I do not like the "API should be completely transparent" and "API must not be bloated".
I personally think APIs exist to hide complexity. They should make sense, they should be usable, but they need not be transparent.
Let's have a rather contrived example. In SDL, you can call SDL_Init(). That does a lot of things, and what it does differs on windows, linux, and OSX. I absolutely don't want the more transparent API of SDL_Init_Windows_Video(), SDL_Init_Windows_Audio(), SDL_Init_Linux_Video() .... And so on. Realistically, for absolute transparency, you'd just do away with the API and write every line of code SDL currently hides (Reductio ad absurdum I know)
The entire point of having that one SDL_Init() call that's identical on all platforms, even though it does many opaque things underneath (and different things per platforms) is that it's easier to understand and use. The goal of an API is to be usable and useful, nothing else. Transparency can often get in the way of usability.
As for the "bloated" bit. Well, I'd rather be able to do too many things than too few. It's a great goal to have a purely orthogonal (no method may be accomplished with another combination of methods) API, but it should not be done at the expense of usability.
> Nothing should be put into it except what's impossible or impractical to do in pure Lua, and what's extremely common and likely to be used in everyone's configs.
The entire quote makes it seem even more damning to me. Why would you cater to what's "likely to be used in everyone's configs"? That's another way of saying "Let's support only the least common denominator" which to me seems like a bad philosophy.
This philosophy would lead to twitter not having a friendship API because the only thing practically every api user does is login and (arguably) tweet, only a few deal with friendships or account settings. It would lead to linux not having a configuration option for running more than one physical CPU or hotswapping ram because the wide majority of people will never use these options.
I'm happy that the author of this software decided to make it simple and it seems to be working here, but in the majority of cases of API design, I'd much rather the API be usable, not transparent, and large, not minimalistic. I'd rather be able to call a method that does some common activity for me which I could technically do myself in a 1000 lines of code than not have such a method because it's "bloat".
It was the parent I responded to who said all software should strive for this. My argument is not against the philosophy of the window manager in this instance, but rather against applying it everywhere as the parent seemed to think would be good.
So no, you can't really compare those, I agree, but it was not me who brought in an arbitrary piece of software, but the parent comment.
It's clearly better to have an app that never crashes than an equivalent one that crashes all the time.
However, making sure that your app is 100% crash-free isn't a zero cost thing. It takes time and effort to (often, a lot of both) to get to a completely crash-free app, meaning that the app either costs more, takes longer, or has to compromise on features - or possibly all three. In some case, that trade off is clearly going to be worth it - I'd rather a self-driving car took 10 years longer to develop than have one that rebooted itself twice a day, but in others I'm fine living with the occasional crash if it means cheaper or more feature-rich applications.
I agree. Like I say, there are some instances where zero crashes is absolutely the right goal. It may not be absolutely mandatory for a window manager (in the way it would be for a self-driving car), but I can understand why someone would want this as a goal for this app.
My point was more that I don't think it's a sensible standard for all software. I hear this kind of thing quite regularly, usually by non-technical managers, often in a way that seems to suggest they think bugs are either the result of pure sloppiness, incompetence or downright malice.
This looks great. Will try it out. It has always surprised me how OS X has such a poor window placement story given how much emphasis apple seems to place on User Experience.
It doesn't shock me. Apple is all about the UE, but isn't at all about User Choice. Apple would prefer to tell you where the windows are best positioned for optimal usage rather than letting you tell them.
Plus for the majority of average users they'll never need side by side windows anyway, that is a "power user" feature (like multiple desktops, or similar).
I don't there is anything too surprising about this. "User Experience" isn't something you can measure on a single line, there are different aspects to it. I'm not an expert but I think the following are some of the things that users can appreciate:
1. That things work smoothly.
2. That things look pretty.
3. That it's easy to figure out what a program does when you first use it.
4. That it's possible to control the program efficiently, i.e., that you can quickly activate a program's different functions.
5. That a program is powerful, in that it enables you to customize it to work exactly as you need and automate it's use.
I've heard people claim Apple focuses on 1-3, I've never heard people say Apple focuses on 4 and 5. For windows placement in particular, Mac OS (as practically all window managers) has a method that covers 1-3: move and resize with the mouse.
> I've heard people claim Apple focuses on 1-3, I've never heard people say Apple focuses on 4 and 5
I think 4 applies to an extent; MacOS has very good (albeit stolen from Emacs) universal text navigation shortcuts, for instance. Funnily enough, they used to be quite keen on 5, with Services and Applescript. Services are still around, but have faded into obscurity, with surprisingly few users even being aware they exist; to an extent, they may be replaced by action extensions.
Maybe its just because I came from Windows, but I generally expect hitting the maximize button to take the app to take up the whole screen space. On OS X, some apps do and some don't.
This violates #3 for me.
Another one is minimizing a window and then Alt-Tabbing to it (whatever the Mac equivalent is..) doesn't bring that window back up.. You are just left staring at the same app.
Maybe it is indeed because you come from Windows, but OS X doesn't have a Maximize button. The green light of OS X's traffic-light configuration is Zoom. But it's becoming Full Screen in Yosemite, so that should be closer to what you want out of the button.
As to your second point, that probably has the same cause. On OS X, you Cmd-Tab between applications, not between windows. Within an application, you can Cmd-Backtick between windows, but I don't think there's a navigatable collection of all windows across all applications.
Check out HyperSwitch ( http://bahoom.com/hyperswitch ) - it makes cmd+tab and cmd+backtick way more useful. Window previews, cycle through minimised windows and other good stuff
For the "closed-source-but-non-programming-power-user" alternative to this, I'm a huge advocate of BetterTouchTool (http://www.boastr.net/). You can easily bind window snaps to everything from keypresses, to four-finger-sweeps on the trackpad, to dragging window titlebars to the screen corners. Also it's so much fun to infuriate friends when they try to use my trackpad and it moves windows all over the place.
I Quickly had a look on all the window manager alternatives mentioned here. Currently I use flexiglass, but I use it for one reason only. It allows me to move windows like in linux.
When holding Mouse button 1 + alt anywhere in the window I can move it. I really like this feature, I never use the titlebar to move windows.
Do any of the alternatives (or hydra it self) allow me to do this? I'd like to try them out. See if it has advantages over flexiglass.
For me, the bigger idea to tiling wm, or these psuedo tiling wm is that I never have to use mouse to move/resize/shuffle windows. I too initially missed that feature when I first started using a tiling wm, but that quickly went away as soon as I had the keyboard shortcuts memorized.
The 1.1 milestone has plans for "mouse-moved" and "modifiers-changed" events that you can register for, which would let you create a feature very similar to this, where if you hold down option and move the mouse, it will move the window under the mouse with it. I'll file an issue to investigate if it's possible to register for "mouse-clicked" events and override them to be no-ops (so that you don't actually click into the window). That sounds like a fun feature :)
If you're looking for a window manager for OSX without having to actually configure anything, you can try using Spectacle: http://spectacleapp.com/
For instance on my imac 27'' I have Option+Command+Left|Right keys mapped to side (similar to windows 7.
And I can also have 4 windows open at once using Shift+Option+Command+Up|Down|Left|Right to move them to the different corners. Works really well with less than 2 minutes of setting the hotkey on a simple GUI configuration window.
I'm a -big- huge fan of Spectacle, I've been using it for a long time now and couldn't imagine life on a Mac without it. There's worth noting that there's a plethora of similar apps out there:
If you are already using Alfred, I'd suggest having a look at the new workflows available, in particular layout, which covers a lot of the features of spectacle.
For instance, typing 'layout left' in alfred will push the window the left side, topleft for the corner, etc.
I personally find that I don't need anything more than what Spectacle gives me (splitting windows is really it). That said, I love me some Alfred workflows. Alfred is the single best software purchase I've ever made.
I have a similar one to yours that creates a new plain text document from text on the clipboard.
My most often used one is Open current safari tab in chrome. I prefer using safari as I seem to get the best battery life using it. I don't have flash installed so any page that may have a flash component just gets opened in chrome using that Alfred workflow.
I occasionally need to open links in Firefox (rather than Chrome) so I have a FF <url> workflow that simply opens that link in Firefox. I need to automate more of my workflows.
Might be a good idea sdegutis, to have sample configuration that replicates the setup from Spectacle, Moom, etc., similar to what you did with Zephyros (I think?).
Been using Slate as well but it's not maintained anymore. I wanted to switch to Phoenix - https://github.com/sdegutis/Phoenix/ which is from the same guy that this Hydra. I think the idea of Hydra was the rewrite it in Lua but I can't speak for him. Will definitely try it out asap!
Hydra is indeed my successor to Phoenix. Phoenix and Zephyros (and AppGrid if you can find it) are deprecated in favor of Hydra. But I can't just delete those projects, as existing users may not want to port their configs to Lua. Oh how I wish I could though.
I find it great that you've opted for Lua over JS. I see far too many projects with JS shoveled in where Lua would be a better, cleaner, and simpler fit.
I'm very glad to hear that. I was expecting a lot of people to be disappointed that it's not JS, but honestly I think Lua is a lot cleaner and simpler, and it is just so small and easy to integrate with in C, it's really hard not to use it in a project!
I'm one of those people still using Zephyros, mostly so that I could keep using beer (https://github.com/v-yarotsky/beer). I skipped Phoenix but might give Hydra a try (knowing no Lua though) just to see what you've been doing with it.
But I have some issues I can't seem to resolve - I saved the sample config in the specified path (it should be correct since on reload the app says "Hydra sample config loaded"), but I can't open the repl (Hydra Error: "Attempt to call a nil value"). And using the Cmd+Ctrl+Alt+J doesn't make the window shorter, only moves it to the right (going out of the screen).
Yep, that was indeed an error. Tried fixing it, released beta5. Actually fixed it, released beta6. Nothing like being on the front page of HN to make me rush enough to mess that up one-line-fix on the first try. :)
I miss my days on Ubuntu with i3 tiling window manager. I currently use an app called Amethyst[1] but find it to be a bit buggy at times and just doesn't live up to i3 or awesome. I wonder if hydra can be used as a launch point to create a better tiling window manager for OSX. I'm not familiar with the APIs that OSX exposes, if any, to do things like window management but it would be awesome to see some more control over workspaces and not just the windows within a workspace.
Amethyst is the first tiling window manager I've used for any substantial length of time. I made my desktop transition from NetBSD -> OSX before tiling window managers were really much used. Amethyst gets props from me in being the first that has worked intuitively and stabily such that I've actually stuck with it for any length of time.
As for Linux, I realize that I'm personally in a place where leaving OSX would cause me no grief whatsoever. I catalogued everything I run on my Mac these days, and was pleasantly surprised to find I have zero local commercial software that I depend on, or indeed any Mac-only software. Generally, when I've used recent Linux desktops, I've discovered that the experience is at least on par with my Mac, with the added bonus that Emacs doesn't have so many quirks.
Battery life on my MacBook Air is really the only thing keeping me from moving back. I have to wonder if there is any movement to achieve power management parity with OSX in Linux.
Having emacs-like keybindings by default in all native text fields and text boxes (including this one) is a huge plus for OS X. In Linux, I had to write everything in emacs and copy/paste it into the field in question. Fine for emails, not so great for address bars, impossible for dmenu, etc.
I have emacs-like keybindings in most Linux apps, including dmenu. For some apps that don't support this by default, you can configure it via their gtk backend.
I was in the same position and switched to Arch long ago. Power management in my MacBook Air 11 2013 is as good as in OS X, if not better. This sounds like a bold statement, but mind that it's almost 100% Intel hardware. Intel funded powertop, which is a utility that allows you to track and optimize software and hardware power usage.
Even Linus himself used this machine for quite long. He then moved on to a Chromebook Pixel. These days he seems to be using a Vaio.
How long does your battery last under Linux, with reasonable screen brightness? What's the battery discharge rate indicated by powertop? Are you using a full desktop environment?
I run a very minimalistic environment without a DE. I use XMonad as a WM. My only graphical applications are Firefox and Zathura.
With wireless on, while browsing the web, powertop shows around 5.2W. This is with a pretty bright screen. With reasonable usage, you can go well past 5 hours. Note this machine has a tiny battery in comparison to the 13 inch model.
I believe things could be even better (-0.5W) if I used another driver for the Broadcom wireless card (currently using the stock one in the kernel), as it doesn't support power management. Besides, on X11 the keyboard and the trackpad do not sleep properly.
Best hardware I've seen in this regard was a X220, and a Nokia N9. But the Mac is extremely good. If one cherry picks hardware for Linux like Apple does for OS X, the experience can be very good these days.
Hmm... Even 5 hours is pretty low compared to what I get under OSX with normalish usage on my MBA 11". I've also found that I get markedly better battery life when I connect to my Apple-branded wifi base station than when I connect to wifi just about anywhere else. This makes me wonder if Apple doesn't have some proprietary power scaling stuff with the wifi. Still, 5 hours is good enough that I might consider a more thorough checking out.
EDIT: I should add that I've only spent time in 10.9 on this MBA 11 2013 model. I've been told the battery life in 10.9 really is quite a lot better than in 10.8.
Well, with comparable usage I was getting perhaps 20 extra min on OS X. It's very good I think. It's pretty clear when you check sensor temperature: both machines are equally cold.
In the old (and not so old) times, laptops with horrid Linux power management would be extra warm due to all components being powered up all time. Far from it right now, if you cherry pick hardware. There's still room for improvement, though.
I've been using WinSplit Revolution for years and love it. It's not extensible, but lets you do things like toggle between 1/3, 1/2, and 2/3 of the space, which I use a lot.
Wouldn't F-Script[1] achieve the same? I'm not sure how much love it's received for Mavericks but it's a great way to peek into any Cocoa app and call methods.
Welp, my sample config's REPL command was broken in the beta that everyone downloaded. And my first attempt at fixing it didn't actually work. It works on Beta 6. Nothing like my project being #2 on HN to make me rush enough to need two tries to fix a 1-line bug, heh.
Looks promising but how is multi monitor support? And how easy would it be to detect whether I am on my 1 screen laptop or 3 screen desktop, and use different setups accordingly?
No config, all shortcuts bound to Ctrl + Option + Command + arrows and a few others. They have an unlimited free trial, but pay for it if you really use it.
Cool tool. Would be a good idea to get it on homebrew for one liner install.
I noticed when checking whether it was on homebrew that there's another piece of software already by that name that could be worth avoiding (despite being an almost perfect name for what this does).
You do have to configure things and set them up a bit, but it can do SO much more than just window management.
Just throwing another option out there…For me, Keyboard Maestro is one of those must-have programs like Alfred or Hazel—totally changes how you do things.
I've been using slate, but I must admit the API for it is not that incredible (certain math operations are not very elegant) -- https://github.com/jigish/slate
156 comments
[ 4.0 ms ] story [ 229 ms ] threadI love your Zephyros and Phoenix projects. Keep working!
I really miss good tiling wm on MacOS X.
Capslock + E = Swap currently selected window to other desktop, make that window fullscreen and center the mouse cursor on it
Edit to say: it would be really great to see some more complete code samples but I'm sure that'll come in time.
10MB is a fairly ridiculous modern standard to limit yourself to, IMO (and I started on the C64 and generally do dislike and try to avoid bloat).
I personally think APIs exist to hide complexity. They should make sense, they should be usable, but they need not be transparent.
Let's have a rather contrived example. In SDL, you can call SDL_Init(). That does a lot of things, and what it does differs on windows, linux, and OSX. I absolutely don't want the more transparent API of SDL_Init_Windows_Video(), SDL_Init_Windows_Audio(), SDL_Init_Linux_Video() .... And so on. Realistically, for absolute transparency, you'd just do away with the API and write every line of code SDL currently hides (Reductio ad absurdum I know)
The entire point of having that one SDL_Init() call that's identical on all platforms, even though it does many opaque things underneath (and different things per platforms) is that it's easier to understand and use. The goal of an API is to be usable and useful, nothing else. Transparency can often get in the way of usability.
As for the "bloated" bit. Well, I'd rather be able to do too many things than too few. It's a great goal to have a purely orthogonal (no method may be accomplished with another combination of methods) API, but it should not be done at the expense of usability.
The entire quote makes it seem even more damning to me. Why would you cater to what's "likely to be used in everyone's configs"? That's another way of saying "Let's support only the least common denominator" which to me seems like a bad philosophy.This philosophy would lead to twitter not having a friendship API because the only thing practically every api user does is login and (arguably) tweet, only a few deal with friendships or account settings. It would lead to linux not having a configuration option for running more than one physical CPU or hotswapping ram because the wide majority of people will never use these options.
I'm happy that the author of this software decided to make it simple and it seems to be working here, but in the majority of cases of API design, I'd much rather the API be usable, not transparent, and large, not minimalistic. I'd rather be able to call a method that does some common activity for me which I could technically do myself in a 1000 lines of code than not have such a method because it's "bloat".
So no, you can't really compare those, I agree, but it was not me who brought in an arbitrary piece of software, but the parent comment.
> Hydra must be stable. It should never crash
It's clearly better to have an app that never crashes than an equivalent one that crashes all the time.
However, making sure that your app is 100% crash-free isn't a zero cost thing. It takes time and effort to (often, a lot of both) to get to a completely crash-free app, meaning that the app either costs more, takes longer, or has to compromise on features - or possibly all three. In some case, that trade off is clearly going to be worth it - I'd rather a self-driving car took 10 years longer to develop than have one that rebooted itself twice a day, but in others I'm fine living with the occasional crash if it means cheaper or more feature-rich applications.
> Hydra must gracefully and rapidly restart should it crash w/o losing any user data.
And then maybe it could do this be serializing state into a sqlite or redis instance. We always to be careful of muddling the goal and the mechanism.
My point was more that I don't think it's a sensible standard for all software. I hear this kind of thing quite regularly, usually by non-technical managers, often in a way that seems to suggest they think bugs are either the result of pure sloppiness, incompetence or downright malice.
Plus for the majority of average users they'll never need side by side windows anyway, that is a "power user" feature (like multiple desktops, or similar).
1. That things work smoothly.
2. That things look pretty.
3. That it's easy to figure out what a program does when you first use it.
4. That it's possible to control the program efficiently, i.e., that you can quickly activate a program's different functions.
5. That a program is powerful, in that it enables you to customize it to work exactly as you need and automate it's use.
I've heard people claim Apple focuses on 1-3, I've never heard people say Apple focuses on 4 and 5. For windows placement in particular, Mac OS (as practically all window managers) has a method that covers 1-3: move and resize with the mouse.
I think 4 applies to an extent; MacOS has very good (albeit stolen from Emacs) universal text navigation shortcuts, for instance. Funnily enough, they used to be quite keen on 5, with Services and Applescript. Services are still around, but have faded into obscurity, with surprisingly few users even being aware they exist; to an extent, they may be replaced by action extensions.
This violates #3 for me.
Another one is minimizing a window and then Alt-Tabbing to it (whatever the Mac equivalent is..) doesn't bring that window back up.. You are just left staring at the same app.
This violates #1 for me.
As to your second point, that probably has the same cause. On OS X, you Cmd-Tab between applications, not between windows. Within an application, you can Cmd-Backtick between windows, but I don't think there's a navigatable collection of all windows across all applications.
When holding Mouse button 1 + alt anywhere in the window I can move it. I really like this feature, I never use the titlebar to move windows.
Do any of the alternatives (or hydra it self) allow me to do this? I'd like to try them out. See if it has advantages over flexiglass.
You can use keypress + mouse movement:
http://imgur.com/ZeV8grb
...or just with the mouse alone:
http://imgur.com/JNXYf1q
For instance on my imac 27'' I have Option+Command+Left|Right keys mapped to side (similar to windows 7.
And I can also have 4 windows open at once using Shift+Option+Command+Up|Down|Left|Right to move them to the different corners. Works really well with less than 2 minutes of setting the hotkey on a simple GUI configuration window.
https://github.com/fikovnik/ShiftIt
http://www.macupdate.com/app/mac/41147/spectacle
http://alternativeto.net/software/spectacle/?platform=mac
For instance, typing 'layout left' in alfred will push the window the left side, topleft for the corner, etc.
Github repo: https://github.com/jgallen23/layouts
I personally find that I don't need anything more than what Spectacle gives me (splitting windows is really it). That said, I love me some Alfred workflows. Alfred is the single best software purchase I've ever made.
My alfred workflow library is incredibly sparse at the moment, so if you have any other good resources you'd like to share, that'd be great.
The one I use the most, by far, is "Plain Text Paste," which I use almost every time I paste anything (I use the hotkey CMD-SHIFT-V). It's here: http://cachefly.alfredapp.com/beta/Plain%20Text%20Paste.alfr...
The only other workflows I use regularly are hotkeys to open websites I visit regularly, like our own website and our WordPress log-in control panel.
I'd too would love to hear which workflows other HN readers use a lot.
I have a similar one to yours that creates a new plain text document from text on the clipboard.
My most often used one is Open current safari tab in chrome. I prefer using safari as I seem to get the best battery life using it. I don't have flash installed so any page that may have a flash component just gets opened in chrome using that Alfred workflow.
[0] https://github.com/jigish/slate
This is pretty sad considering the immense capabilities of JS.
But I have some issues I can't seem to resolve - I saved the sample config in the specified path (it should be correct since on reload the app says "Hydra sample config loaded"), but I can't open the repl (Hydra Error: "Attempt to call a nil value"). And using the Cmd+Ctrl+Alt+J doesn't make the window shorter, only moves it to the right (going out of the screen).
I am sure this is just a beta release hiccup.
[1] https://github.com/ianyh/Amethyst
As for Linux, I realize that I'm personally in a place where leaving OSX would cause me no grief whatsoever. I catalogued everything I run on my Mac these days, and was pleasantly surprised to find I have zero local commercial software that I depend on, or indeed any Mac-only software. Generally, when I've used recent Linux desktops, I've discovered that the experience is at least on par with my Mac, with the added bonus that Emacs doesn't have so many quirks.
Battery life on my MacBook Air is really the only thing keeping me from moving back. I have to wonder if there is any movement to achieve power management parity with OSX in Linux.
Even Linus himself used this machine for quite long. He then moved on to a Chromebook Pixel. These days he seems to be using a Vaio.
With wireless on, while browsing the web, powertop shows around 5.2W. This is with a pretty bright screen. With reasonable usage, you can go well past 5 hours. Note this machine has a tiny battery in comparison to the 13 inch model.
I believe things could be even better (-0.5W) if I used another driver for the Broadcom wireless card (currently using the stock one in the kernel), as it doesn't support power management. Besides, on X11 the keyboard and the trackpad do not sleep properly.
Best hardware I've seen in this regard was a X220, and a Nokia N9. But the Mac is extremely good. If one cherry picks hardware for Linux like Apple does for OS X, the experience can be very good these days.
EDIT: I should add that I've only spent time in 10.9 on this MBA 11 2013 model. I've been told the battery life in 10.9 really is quite a lot better than in 10.8.
In the old (and not so old) times, laptops with horrid Linux power management would be extra warm due to all components being powered up all time. Far from it right now, if you cherry pick hardware. There's still room for improvement, though.
To get the dictionary hot key and the other scripting abilities in Windows you would use AutoHotKey.
[1] http://www.fscript.org
link - https://github.com/sdegutis/dotfiles/blob/osx/home/.hydra/in...
[1]: https://github.com/sdegutis/dotfiles/blob/osx/home/.hydra/gr...
[2]: https://github.com/sdegutis/hydra/wiki/Useful-Hydra-librarie...
REPL is working for me now :-)
Emphasis is on support for multiple screens, ease of use and snappiness. (which doesn't come across in my video I guess...)
I know my download page sucks, but if anyone wants to try and give me feedback, I'd be happy to read it. Send an email.
...sorry, just saw Winter Soldier this week.
No config, all shortcuts bound to Ctrl + Option + Command + arrows and a few others. They have an unlimited free trial, but pay for it if you really use it.
[1]: http://caskroom.io/
You do have to configure things and set them up a bit, but it can do SO much more than just window management.
Just throwing another option out there…For me, Keyboard Maestro is one of those must-have programs like Alfred or Hazel—totally changes how you do things.