3 ms·
Hammerspoon is great. I use it to manage windows (eg set vscode and a browser side-by-side when connected to an external display, full screen when not), add a h
by cranekam 5y ago
Hammerspoon is great. I use it to manage windows (eg set vscode and a browser side-by-side when connected to an external display, full screen when not), add a hotkey to translate selected text with Deepl, to mute sound when the machine sleeps, and to launch a terminal with an fzf-based browser history searcher that beats Firefox’s hands down.
It’s easy to use and has great docs. Lua is fun to write. HS is a really nice project.
- redleather 5y agoDo you mind sharing your code for the translation and fzf-history hotkeys? Those sound like useful applications.
- 9935c101ab17a66 5y agoNot OP, but I found this after a little bit of searching: https://gist.github.com/dshnkao/10865f32d69e40dc591e08e3af970e9d https://gist.github.com/dshnkao/10865f32d69e40dc591e08e3af97... Shouldn't be that hard to spawn a terminal with this running from hammerspoon. Here's some Spoons that handle translation: https://github.com/Hammerspoon/Spoons/blob/master/Source/DeepLTranslate.spoon/init.lua https://github.com/Hammerspoon/Spoons/blob/master/Source/Dee... https://github.com/Hammerspoon/Spoons/blob/master/Source/PopupTranslateSelection.spoon/init.lua https://github.com/Hammerspoon/Spoons/blob/master/Source/Pop... I have quite a bit of experience with HS, let me know if you have any questions / need any help.