Show HN: Grid-based window tiling for X11 with powerful keyboard controls
github.com
github.com
Quake-style terminals have always been popular. I used to use Yakuake on KDE which was very convenient.
The convenience its not that those terminals open up with an animation (which is quite annoying). It was because there was a dedicated keyboard shortcut for them. You memorized that and you never ever think about managing the window of that application again.
So for years I have keyboard shortcuts assigned to my applications.
F1 opens Browser
F2 opens File manager
F3 opens Text Editor
F4 opens Chat App (Telegram)
F6 opens Email client
F7 opens ICR Client
F9 opens Terminal
F10 opens Music Player (Although Spotify on Linux has a bug that doesn't allow this to work)
Ever since I adopted this scheme I simply have a better quality of life during the time I'm using my computer. If there was a CPU usage for my brain, I'm sure its dropped. I strongly suggest you to try it out.
Because the shortcuts become muscle memory and you don't even think about them anymore. You know what you want and your fingers just know how to open it up.
I'm not quite sure which window managers allow this, but I'm using KWin and it allows me to arrange these shortcuts.
Having programs available from anywhere with just a few keystrokes makes everything feel very accessible. Whenever I want to run something I just need to type a few characters of the binaries name to launch it.
I use a similiar set up for ssh, where I pipe the Hosts from my ~/.ssh/config into dmenu and only need to type part of the hostname to connect.
[dmenu] http://tools.suckless.org/dmenu/
My question is: how do you open ssh from dmenu? I can't open terminal applications from dmenu, it should open a terminal automatically, I guess, but it doesn't do anything. Is that controlled by some other Linux configuration? I'm on Ubuntu with i3.
#!/bin/sh
exec xterm -e ssh user@hostname
This is of course customizable to use other keystrokes if you prefer.
Wayland excluded because in wayland this feature is either provided/enabled by the environment or impossible to implement for securities sake.
If you haven't already got it may I suggest you implement some sort of raise or run functionality so that say F6 could open your email client or focus it if its already open.
Lots of keys combined with Meta(alt)+Control key, the optimum keybinding for window manager, those two keys are always unused in user programs. Its really perfect for emacs, no-one has imagined to use those two keys with some random key, on any of emacs packages or modes.
Poor me have binded my windowmanager commands with Super(windows) + (what ever command key I use for it.
It divides the screen into halves and thirds horizontally and vertically, with one keypress setting size and position on one dimension. (The recommended key settings are vaguely mnemonic, but of course you can pick pretty much anything and then get used to it through practice.)
I can't remember the last time I felt the need for a finer grid, but the 4x3 grid here has got me thinking that maybe it could do with an update...
People only make complicated arrangements for screenshots.
What I like about the tiling wm is that I can launch an application and have it immediately fill the entire screen (without annoying decorations). Then opening and closing windows, changing windows, moving workspaces, etc, is all just a hotkey away.
This same setup would be possible with openbox I think, but it all comes "out of the box" with most tiling window managers.
How much would would it be to let the user custom define their grid? Ie, it's 4 * 3 by default, could we have 3 * 2 for laptop users?, or 4 * 2 for monitors turned sideways?
Here's a screenshot of it in action: http://i.imgur.com/2N8czFR.jpg It took about five keystrokes to get the windows arranged like this. No mouse.
It's a product which has gotten far too little love financially compared to the value it produces. It's become an integral part of my OS X usage, and I can't imagine spending a day without it.
I have it set up like this:
Alt-1: Stretch the current window as wide and tall as possible. (Fill all available space.)
Alt-2: Make the current window occupy the left-half of the screen. Press Alt-2 again to occupy the right half.
Alt-3: Make the current window occupy the top-half of the screen. Press Alt-3 again to occupy the bottom half.
Alt-4: Occupy the top-right quarter of the screen. Pressing Alt-4 multiple times moves the window clockwise: bottom-right, bottom-left, upper-left, upper-right.
Alt-5: Center the current window, fill all vertical space, and fill 75% of total horizontal space.
Alt-Tab: http://i.imgur.com/SRFb16t.png Better version of Cmd-Tab. Pressing Alt-Tab once will go to the most recently active window. Twice goes to the second-most-recently active, and so on. Note that this is by window, not application. This alone is a massive improvement.
Alt-F: Search for a window whose title contains the specified string.
Remarkably, these hotkeys have never conflicted with any apps I use, and I've been using it for like two or three years.
The free version works just fine, but pops up a nag screen every day or so.
I wish it defaulted to these shortcuts, because it takes some work to set it up as I've described above. There's also no easy way for me to export and share my configuration with you. But once you've set it up this way, you'll never want to go back. OS X's maximize button is very inconsistent and it's remarkable that there's no hotkey to make the current window fill all available space.
Kwin has a similar functionality. When I used that I prefered to bind super+numbers to these operations. I used the numbers on the num pad that corresponded with the desired location. Example 8 toggled between top half top third and Top 2/3. 7 used the top left quarter etc. I think having some mapping between the physical layout and the layout on screen is useful.
You can argue that its worth the money but its silly to argue that it can be had for free when its under terms that nobody including the developer expects you to accept! Its not supposed to be free you are supposed to buy it or delete it.
The specious cup of coffee argument. A cup of coffee at a coffee house is itself overpriced its 15c of coffee prepared with 25c of labor. The fact that people like Starbucks are as successful as they are at turning 40c into $5 is amazing. Anyway this emotional appeal doesn't even work on an emotional level if you think about it. I say this as I drink my own delicious 15c cup of coffee.
(Currently using Hammerspoon, but use qtile on Linux)
This might be what I'm looking for http://www.hammerspoon.org/docs/hs.grid.html
It's rather limited - make window fill quarter/half screen, make window fill whole screen, move window to next monitor - but it's very easy to configure, and supports XQuartz windows.
I try to use Windows 10's tiling, but it'll only do 4 quadrants (with variable sizes)
Its basically a ripoff of the macOS tool https://github.com/janten/keypad-layout