hammerspoon-shiftit icon indicating copy to clipboard operation
hammerspoon-shiftit copied to clipboard

some hotkeys/commands not working (particularly `nextScreen`)

Open tansaku opened this issue 2 years ago • 6 comments

Firstly, thanks so much for providing this - so wonderful to have this functionality.

I used very successfully on an intel mac, and just switched over to an M1, where the window re-sizing works via hotkey, but not various other commands/hotkeys particularly nextScreen/n which I really miss.

Does anyone know of a change needed to adapt to M1 - I've got it on Monterey 12.3.1

Could it be the OSX version? I can't quite remember if this was working before the latest update ...

Many thanks in advance for any help

tansaku avatar Apr 22 '22 10:04 tansaku

Hi Sam, thanks for reporting :). I'm out of town atm, so can't test it right now.

I'll try it on an M1 machine later and see if I can reproduce the issue. I use this functionality on an Intel machine regularly, and would expect it to work the same on M1.

peterklijn avatar Apr 25 '22 14:04 peterklijn

I tried to reproduce the problem you reported, but for me the nextScreen and previousScreen work just fine. I tested it on an M1 MacBook Air running macOS Monterey 12.3.1 with one external display next to it.

I'm running on Hammerspoon Version 0.9.97 (6267).

Do you see any errors while executing the shortcuts ctrl(^) + alt(⌥) + cmd(⌘) + N or ctrl(^) + alt(⌥) + cmd(⌘) + P in the Hammerspoon Console? And could you please verify that Hammerspoon has all needed permissions (https://github.com/peterklijn/hammerspoon-shiftit#known-issues)?

peterklijn avatar May 06 '22 07:05 peterklijn

I also am unable to use next window, but it appears to be limited to chrome windows. What it appears to do is decrease the window size by a bit instead of jumping to the next or previous window.

EHLOVader avatar May 19 '22 20:05 EHLOVader

I'm encountering the same issue - using next or previous has some very weird behavior - gradually shrinking the window until it's tiny, and then finally moving it to the other screen.

I've verified that Hammerspoon has the correct permissions (accessibility), and nothing is showing up in the Hammerspoon console.

EDIT: It appears that some windows don't exhibit this same behavior - Chrome seems fine, as does Finder. But Firefox and at least one of my Electron apps have this issue.

Here's a video of the weirdness in action:

https://user-images.githubusercontent.com/729694/169410592-6c22b57d-928b-4bb2-80b9-94a6efc687c9.mp4

russtaylor avatar May 19 '22 21:05 russtaylor

This issue seems related to https://github.com/Hammerspoon/hammerspoon/issues/3224

ttakezawa avatar Jun 06 '22 14:06 ttakezawa

I'm also seeing this issue. Note: w/ the latest mac update it's gotten worse. It seems that almost no windows correctly work w/ hammerspoon

  • m2, OS: ventura 13.5.2

frankandrobot avatar Sep 19 '23 15:09 frankandrobot