4 ms·
here is my entire config hs.hotkey.bind({"ctrl"}, "D", function() hs.grid.show() end) i've tried all of the other fancy window managers and for
by pjm331 7mo ago
here is my entire config
hs.hotkey.bind({"ctrl"}, "D", function()
hs.grid.show()
end)
i've tried all of the other fancy window managers and for me nothing has ever beat the ease of use of just
(1) ctrl-d to see the grid, (2) type the letter where you want the top left corner of your window to be, (3) type the letter where you want the bottom right corner to be
window resized
- stackghost 7mo agoNot that I insert EOFs very often, but does that conflict with CTRL+D in the terminal?
- xyzzy_plugh 7mo agoI use EOF all the time to end terminal sessions.
- commandertso 7mo agoGreat handle, btw.
- pjm331 7mo agoyeah the CTRL+D definitely gives me problems from time to time but thus far i have been too lazy to fix it
- theshrike79 7mo agoMake caps lock a hyperkey (shift+ctrl+option+cmd) and use that for non-overlapping shortcuts
- 1-more 7mo agomake caps lock control on hold, double quote on tap. Make control hyperkey on hold, angle bracket on tap. My keyboard firmware is very odd. This is not easily done with soft remaps to the point that I don't bother trying.
- dbalatero 7mo agoIf you're on macOS have you tried Karabiner Elements? It seems to do just fine with software mapping my macbook keyboard.
- 1-more 7mo agoI do use it. Before the way config worked changed I had hold/tap control/double-quote working. But they changed the way config works and I didn’t bother to fix that because I made a keyboard that does what I want exactly and when I’m on my laptop keyboard I don’t care toooo much.
- elAhmo 7mo agoThis is amazing! I have a slightly more elaborate setup that allows me to resize from one or another side, similar to what Apple added recently but with more flexibility, but this is super interesting, thanks for sharing!
- hrmtst93837 7mo ago[flagged]
- dbalatero 7mo agoSyncing configs is a pretty solved problem with dotfile repos. I even made a starter repo anyone can fork & use: https://github.com/dbalatero/dotfiles-starter https://github.com/dbalatero/dotfiles-starter
- matthewmc3 7mo agoWow... that's... incredible. I've used Hammerspoon forever and never knew that existed. Just messing around I found you can extend the grid size with `hs.grid.setGrid('4x4')`, which you also may then want to shrink the text size with `hs.grid.ui.textSize = 30`, and finally if you use an alternative keyboard layout (eg: Colemak), you can set the grid to use it with `hs.grid.HINTS`. They really thought of everything with this feature.
- hackerthemonkey 7mo agoThis is amazing. Thanks for sharing. Did you ever look into capturing the states of where all the windows are once you are done with resizing them? So as to restore them later back into position if they ever get out of alignment ? Thinking of the usecase where every task or a project deserves a certain arrangement of windows and it would be good to summon them into existence as and when needed?
- pjm331 7mo agoIm sure that’s possible but my own working style is too chaotic for saving workspaces like that haha