Skip to main content
0 votes
0 answers
53 views

This is a minimal version of my init.lua hammerspoon config https://gist.github.com/Touniouk/9b7f61f5d283a1514a386b1068ec8810 My goal is to Take a screenshot of an app Read some text on it Click a ...
Touniouk's user avatar
  • 397
1 vote
1 answer
73 views

I wrote the safest possible example of screen capture using hammerspoon, here it is function SafeSnapshotWindow(appName, savePath) local app = hs.application.find(appName) if not app then ...
Touniouk's user avatar
  • 397
0 votes
0 answers
68 views

This is my literal first time coding anything in AppleScript / Hammerspoon. So I want to make an AutoClicker to stress test my website. The website is simple enough; it has a button for me click, ...
Wakka02's user avatar
  • 1,541
2 votes
2 answers
151 views

We have base LUA file ~/.hammerspoon/init.lua which can load a spoon package: hs.loadSpoon("Foo") Now we have our package file init.lua by path: ~/.hammerspoon/Spoons/Foo.Spoon/init.lua It ...
Kirby's user avatar
  • 3,127
2 votes
1 answer
284 views

I am new to HS and I just try to implement a simple function to make my active window left half, here is my code, I'm confused as to why I have to press cmd+left three times to make this work? hs....
Garon Lombard's user avatar
1 vote
1 answer
204 views

While switching windows with keyboard on MacOS, the default CMD+TAB command shows all the active windows. I use hammerspoon to switch only between windows on a single desktop. This is the script I use ...
Akash Lakhera's user avatar
0 votes
1 answer
213 views

I'm trying to convert some Hammserspoon Lua code to Fennel, but the converted code is throwing the following error. ERROR: LuaSkin: hs.hotkey callback: init.fnl:32: attempt to call a table value ...
NFR's user avatar
  • 326
0 votes
1 answer
98 views

Is there any way to simulate clicking the Spotify DJ button in the macOS Spotify application from outside Spotify, for example with a keypress? Of course, I could just bring up the Spotify window and ...
Steve Kehlet's user avatar
  • 6,506
2 votes
2 answers
823 views

I want to use hammerspoon to replicate Windows' language switching using Alt and Shift. For this I want to add a hotkey bind for command and shift, but all my attempts fail. I tried: hs.hotkey.bind({&...
AlonMln's user avatar
  • 257
0 votes
0 answers
44 views

I tried to use the hamerspoon package to write a timer as follows. local function startTimer() local totalSeconds = 5 local i = 0 local function onTimeout() i = i + .1 local ...
nik's user avatar
  • 2,483
1 vote
0 answers
429 views

I used to have hammerspoon configured on my previous MAC but when I switched to the new MAC (M1) the keystroke is not working while other functions are. Any idea if the new MAC could be blocking ...
JayZampa's user avatar
1 vote
3 answers
606 views

I want to use hammerspoon to find one specific chrome tab across al chrome windows across all spaces. The only way I was able to achieve this was using osascript, which I don't like much because it ...
Danielo515's user avatar
  • 7,301
1 vote
0 answers
84 views

With Automator I can create Quick Actions in Finder. Is it possible to do the same thing with Hammerspoon?
Andreas Jansson's user avatar
0 votes
1 answer
651 views

I have attached to my mac a keyboard with additional (nonstandard) keys. See the image at the end of post. Here is my testing Hammerspoon init.lua local hyper = {"cmd", "alt", &...
clt60's user avatar
  • 64.3k
0 votes
0 answers
182 views

I'm trying to write a fairly simple script for Hammerspoon where I am looping through a table of app windows. The problem is for some reason when I call hs.eventtap inside the loop it keeps firing. ...
Fyrebase's user avatar
  • 163

15 30 50 per page
1
2 3 4 5 6