koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.05k stars 204 forks source link

Multiple action hotkeys not working #356

Open fabibombo opened 3 months ago

fabibombo commented 3 months ago

I'm using skhd in Sonoma 14.5 with latest yabai installed from HEAD. All commands work well but the following commands that chain multiple actions do not work, only the first command works and the window indeed moves to the proper space but the other two after it do not execute:

shift + alt - 1 : yabai -m window --space 1; yabai -m space --focus 1; yabai -m window --focus last
shift + alt - 2 : yabai -m window --space 2; yabai -m space --focus 2; yabai -m window --focus last
shift + alt - 3 : yabai -m window --space 3; yabai -m space --focus 3; yabai -m window --focus last
shift + alt - 4 : yabai -m window --space 4; yabai -m space --focus 4; yabai -m window --focus last
shift + alt - 5 : yabai -m window --space 5; yabai -m space --focus 5; yabai -m window --focus last
shift + alt - 6 : yabai -m window --space 6; yabai -m space --focus 6; yabai -m window --focus last
shift + alt - 7 : yabai -m window --space 7; yabai -m space --focus 7; yabai -m window --focus last
shift + alt - 8 : yabai -m window --space 8; yabai -m space --focus 8; yabai -m window --focus last
shift + alt - 9 : yabai -m window --space 9; yabai -m space --focus 9; yabai -m window --focus last

One thing that bothers me is that I remember it working when I set it up, but after rebooting this has been happening. Any ideas why? Thanks.

michaelsaxon commented 3 months ago

Same issue. shift + alt - (anything) is failing for me because skhd seems to no longer intercept the characters before they're mapped to virtual keypresses for random international characters.

So shift + alt - h gives the non-ascii Ó character, shift + alt - j gives Ô etc. Any ideas what's going on?

skhd -k "shift + alt - h" also gives Ó, so is this some deeper issue?

Never mind, I found the solution: Upon running skhd -V I found skhd wasn't fully loading because of a typo on an earlier line in my skhdrc that snuck in because of some typo. Upon fixing it it unbroke my script, I guess my issue is unrelated to yours...

diegounzer commented 1 month ago

I am facing the same issues, any news about it? Is there any workaround?

Thanks!