koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
5.87k stars 203 forks source link

spotlight key remap broken since Sonoma #337

Open gwillem opened 5 months ago

gwillem commented 5 months ago

Since Ventura=>Sonoma upgrade, I cannot override my spotlight key. My other overrides work fine.

# does not work in alacritty but does in terminal, for spotlight key:
$ skhd -o
keycode: 0xB1   flags: 00000000100000000000000100000000

$ skhd -V
hotkey :: #164 {
    key: '0xB1' (0xb1)
    cmd: '$HOME/bin/ct hq:screenshot '
}
hotkey :: #165 {
    mod: 'cmd'
    key: '0xB1' (0xb1)
    cmd: '$HOME/bin/ct hq:screenshot --mark'
}

But spotlight key still triggers spotlight field. Did anyone manage to use it with Sonoma?

lvadla commented 4 months ago

I have the same issue.

vegetablesalad commented 1 month ago

This works for me: cmd - space : osascript -e 'tell application "System Events" to key code 41 using {command down}' Changes cmd-space to cmd - ;