Live data from Hacker News

Hammerspoon – Lua-based powerful tool automation of macOS

hammerspoon.org

81–84 of 84 posts

Re: Hammerspoon – Lua-based powerful tool automation of macOS

#81
post #77

Earlier quoted context omitted.

Thank you so much for your sample config. I recently got a Macbook for work, and coming back to non-tiling wm has been a challenge, especially with multiple monitors. With this config I am finally back to my comfortable meta+{h,l} tiling, dedicated shortcuts for applications and easy way to move application between monitors. And it took less than 10 minutes. Excellent way to start a Monday.

Awesome, you made my day better knowing that it helped someone. Thanks for your comment! FWIW the rest of my (Mac-based) system config is all open source (both the files I linked are in the same repo) so feel free to steal anything else.

Thanks! I have perused some of the configs and will definitely take a few snippets from zshrc. Also, kdiff3 looks quite interesting. I have been relying on vimdiff/colordiff.

Re: Hammerspoon – Lua-based powerful tool automation of macOS

#82
post #38

If anyone cares, here's my config: https://github.com/kbd/setup/blob/master/HOME/.hammerspoon/i... It shows off a tiny bit of what you can do with Hammerspoon: - window and app management - keyboard shortcuts for common apps (eg. hyper+T for text editor, hyper+B for browser, hyper+S for shell) - if you can code a tiny bit of Lua there's no need for apps like Spectacle, Rectangle, Moom, etc. because it's easy to posit…

This is really interesting! I didn't consider mapping a keypress duration!

Apple has a bit of documentation on scriptable key mapping:

https://developer.apple.com/library/archive/technotes/tn2450...

Re: Hammerspoon – Lua-based powerful tool automation of macOS

#83
post #77

Earlier quoted context omitted.

Awesome, you made my day better knowing that it helped someone. Thanks for your comment! FWIW the rest of my (Mac-based) system config is all open source (both the files I linked are in the same repo) so feel free to steal anything else.

Thanks! I have perused some of the configs and will definitely take a few snippets from zshrc. Also, kdiff3 looks quite interesting. I have been relying on vimdiff/colordiff.

Don't miss https://github.com/dandavison/delta. I use gui diff tools much less nowadays because I can get such great diffs in the terminal.

Re: Hammerspoon – Lua-based powerful tool automation of macOS

#84
post #83

Earlier quoted context omitted.

Thanks! I have perused some of the configs and will definitely take a few snippets from zshrc. Also, kdiff3 looks quite interesting. I have been relying on vimdiff/colordiff.

Don't miss https://github.com/dandavison/delta . I use gui diff tools much less nowadays because I can get such great diffs in the terminal.

Yeah, I found myself gravitating more towards lazygit with the default bundled diff utility, but I believe it has the option to plug an external one. Thanks, will check delta out!
Post reply on HN