As a result, it's possible that something broke which we didn't find in our internal testing. Please file GitHub issues :)
Happy Christmas y'all!
21–30 of 84 posts
As a result, it's possible that something broke which we didn't find in our internal testing. Please file GitHub issues :)
Happy Christmas y'all!
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 ni…
I use this! - Mute my computer when I put it to sleep or when I change wifi networks - Hyper key - Mail.app menubar indicator - Spotify menubar current song - Shortcut to move mouse cursor to another monitor - Window switcher that only lists apps in the current workspace
I love Hammerspoon. It's one of the first must-have-for-a-usable-laptop tools I set up when I get a new MacBook. Here are the top ways I'm using it right now: 1) Hide/show apps similar to how iTerm lets you bind a hotkey to hide/show a terminal. I've got ctrl+space set to Vimcal, alt+space set to midnight.app (a time tracker I'm building), and ctrl+alt+space set to Things. 2) Start/stop playing my work playlist of lo…
I like Hammerspoon, but it's a bit of a pain to write the scripts with Lua - I don't use the language often and it usually takes a while to figure out syntax and necessary stdlib/Hammerspoon functions. Does someone have a hint on how to set up e.g. VSCode or IJ with Lua support and completion for Hammerspoon functions?
Really nice at first sight. I'm getting melancholic vibes of AutoHotKey reading the docs, which was arguably my first entry into professional programming. Knowing nothing about coding, I built a service desk automation back then — with (network file-) shared hotkeys and a real GUI, all in one single file... good times. Anyway, ever since switching to MacOS more than a decade ago, I've always been searching for an AHK…
I have been enjoying espanso[1], which at first glance is just a text-expanding keystoke saver, but can run shell scripts when it's doing its thing. So I can type :extip anywhere and it will curl ipinfo.io then pipe the json response through jq -r and leave my current external IP in whatever app I was typing in. 1: https://espanso.org/
Translate (Requires Google Translate API key) https://github.com/pasiaj/Translate-for-Hammerspoon
Autocorrect: https://github.com/nathancahill/Anycomplete
local cmdShift = {'cmd', 'shift'}
hs.hotkey.bind(cmdShift, 'm', function()
local app = hs.application.frontmostApplication()
for _, window in pairs(app:allWindows()) do
window:minimize()
end
end)
hs.hotkey.bind(cmdShift, 'u', function()
local app = hs.application.frontmostApplication()
for _, window in pairs(app:allWindows()) do
window:unminimize()
end
end)