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

Tiling experience, #macbook, #hammerspoon

I've been frustrated by using tmux, as it keeps getting in my way... it's been crashing on me lately, and also I constantly have to mess with it to get colors and escape sequences working, and to have it play nicely with not capturing certain keys.

After watching @mitchellh talk about this, I was inspired to try eliminating tmux from my workflow and using #ghostty directly https://www.youtube.com/watch?v=o-qtso47ECk

One major thing I missed was being able to have a tmux session per project, and my fzf-powered session switcher for tmux https://github.com/dlants/dotfiles/blob/main/scripts/tmux-session-using-fzf

After a night of hackery, I was able to replicate something workable using #hammerspoon and ghostty's accessibility features! https://github.com/ghostty-org/ghostty/discussions/2353#discussioncomment-13963141

this uses hammerspoon to launch a ghostty terminal. There it runs a bash script that uses hammerspoon's cli (hs) to query the open windows and tabs and their titles (using the stuff that ghostty exposes for a11y). It then feeds it into fzf, and when fzf returns a selection, uses hs again to switch to that window/tab.

I can now have multiple ghostty windows open, one per tab, and use a command shortcut to quickly switch between them :tada:

Now I just need to figure out how to make my ghostty sessions persistent, and do some tweaking around how tabs are numbered, and I'll basically be there.

Vibe Writing

Hammerspoon과 OpenAI API를 활용하여 맥에서 선택한 텍스트를 즉시 번역하는 스크립트를 소개합니다. 이 스크립트는 Cmd+Shift+K 단축키를 통해 선택된 텍스트를 OpenAI의 GPT-4o 모델을 사용하여 한-영 또는 영-한 번역을 수행하고, 번역된 텍스트로 선택 영역을 자동으로 대체합니다. Accessibility API를 활용하여 텍스트 선택 및 대체 과정을 자동화했으며, OpenAI API를 호출하여 고품질 번역을 제공합니다. Vibe coding을 통해 개발하려 했으나, API 문제로 직접 구현했으며, 이 스크립트를 통해 영문 작성 시 번거로움을 줄이고 생산성을 향상시킬 수 있습니다.

Hackers' Pub
J'ai réouvert #ocaml sur mon portable. Après quelques dizaines d'heures passées cette semaine à coder un clone de https://mouseless.click/ avec #HammerSpoon en #fennel, j'éprouve un besoin de retrouver un langage typé 🙃
Mais bon sang, quel écosystème obscur chez les hauts-chameliers  
🐫
mouseless