Skip to content

keyboard – How to rotate between multiple app windows using Hammerspoon?

  • by


My current code for switching to a desired app is this:

hs.hotkey.bindSpec( { hyper , "k"},
  function()
    hs.application.launchOrFocus("Visual Studio Code")
  end
)

But I have opened multiple windows of VSCode.

And I would like to have it integrated into this shortcut so it does the alt + ` shortcut and rotate between all available VSCode windows as I press hyper key + k.

Any idea how to change my code that it works like that?

Leave a Reply

Your email address will not be published. Required fields are marked *