miromannino / miro-windows-manager

Intuitive and clever mechanism for moving windows using only arrows, even resizing windows by thirds or quarters! For OSX
378 stars 39 forks source link

Can't figure out how to bind to modal #4

Open tofagerl opened 6 years ago

tofagerl commented 6 years ago

I'm not good at lua, and can't figure out how to bind to a modal keybind I call dot. Neither of these work:

dot = hs.hotkey.modal.new({"cmd", "shift"}, '.')
spoon.MiroWindowsManager:bindHotkeys({
  up = dot:bind('', 'up')
  down = {dot, "up"} 
})

Is there some other way, or do I have to fork and change the actual spoon to make it work?

vbauerster commented 5 years ago

I did this in my config, check this out.