MacOS에서 hammerspoon을 이용해 -> 를 → 로 치환하기

https://hackers.pub/@arkjun/2026/hammerspoon-arrow-replace

MacOS에서 hammerspoon을 이용해 -> 를 → 로 치환하기

MacOS에서 화살표 기호(→)를 자주 사용하는 사용자를 위해 Hammerspoon을 활용하여 특정 문자열 조합을 자동으로 치환하는 효율적인 방법을 제안합니다. 기존의 시스템 텍스트 입력 치환 기능은 애플리케이션마다 동작이 불분명한 한계가 있지만, Hammerspoon의 hs.eventtap 라이브러리를 사용하면 운영체제 전역에서 발생하는 키보드 이벤트를 직접 제어하여 일관된 사용자 경험을 구현할 수 있습니다. 구현 방식은 단순한 문자열 감시를 넘어 영문 입력 소스 상태 확인과 보조 키(Modifier keys) 제외 로직을 포함함으로써 한글 입력기와의 충돌이나 의도치 않은 단축키 실행 문제를 정교하게 해결합니다. 특히 Lua 스크립트를 통해 상태를 관리하고 백스페이스 이벤트를 전송하여 기존 입력을 지우는 과정은 텍스트 에디터나 터미널 등 환경에 구애받지 않는 강력한 자동화 환경을 구축하는 데 유용합니다. 이러한 접근법은 화살표뿐만 아니라 다양한 특수 기호 치환으로 확장 가능하며, 반복적인 타이핑 수고를 덜어주어 전반적인 문서 작업과 개발 생산성을 크게 향상시킵니다.

Hackers' Pub

I use a Hammerspoon hotkey to save clipboard images as files because my AI sandbox can not see the clipboard. It works, but feels hacky. Anyone have a better way?

https://eshlox.net/clipboard-image-to-file-hammerspoon

#Hammerspoon #DevTools #AI

Paste clipboard images as files with Hammerspoon | eshlox

A Hammerspoon hotkey that saves clipboard images to the current tmux pane directory. Workaround for AI sandboxes that do not support image pasting.

eshlox
Caps Lock as a super key on macOS with Hammerspoon | eshlox

One key for Escape, Ctrl, and app switching. Using hidutil and Hammerspoon on macOS.

eshlox

Okay, fine I give up on my search for a macOS (preferably status-bar) GUI for #restic/ #rustic.

Everything out there seems to be tailored for the WebUI fanatics.

There's ResticScheduler which is great but missing a few crucial features like "abort if pre-run-script fails" as well as the ability to manage multiple backup tasks.

So I guess I'll have to bite the bullet and write my own launchd jobs and some #HammerSpoon or similar magic to monitor those jobs.

(P.S. I'm currently a happy #Arq7 user but the scanning phase for my local and cloud backup has become excruciatingly slow over the past year so I'm trying to once again "find a better thing")

#healsCodes #healsRants

RE: https://mstdn.feddit.social/@admin/116101796318637573

借助hammerspoon实现自动上滑下滑,就OK!:https://github.com/Hammerspoon/hammerspoon

brew install hammerspoon --cask
micro ~/.hammerspoon/init.lua
内容:https://gist.github.com/KipJayChou/0f4b1ed8d5cac74680c12c02e389f47c
速率我从0.02设置为1了,稳一些防止加载不过来和rate limit,可以在` scroll_timer = hs.timer.doEvery(1, function()`修改
然后 在顶部栏 Reload Config
Option+J向下滚动
Option+K向上滚动
Option+S停止

然后Autoclick速率设置为"Click 30 times per minute",可以点多,但是不能漏掉

#hammerspoon #macos #Autoclick #github #backup

Mới! Công cụ macOS mã nguồn mở **Dictator‑Speech‑to‑Text** chạy dưới Hammerspoon, cho phép giữ phím (Fn) để nói và tự động dán văn bản ngay tại vị trí con trỏ, hỗ trợ Whisper API (OpenAI, Groq, Cloudflare). Thích hợp nhập PR, commit, bug, ghi chú mà không rời bàn phím. #opensource #macOS #speech_to_text #Hammerspoon #Lua #mãnguồn #giọngnói

https://www.reddit.com/r/SideProject/comments/1qh1pk0/i_built_a_tiny_oss_macos_menubar_dictation_tool/

Been updating my #hammerspoon config since setting up my new work machine.

It's now replaced my fzf/tmux session picker (so I can use ghostty directly), and also slate / the hotkeys for rearranging windows across multiple screens.

Pretty neat!

@mikka für was verwendest Du #hammerspoon?
🚀 macOS stack: Hammerspoon + Hammerflow + Raycast. One key → instant flow ⚡
https://hammerflow.dev
#macOS #automation #productivity #Hammerspoon #Raycast
The most productive way to control your Mac

The most productive way to control your Mac