skhd
skhd copied to clipboard
Number key are undefined
While trying to set key as a number(0-9), the keycode is set as 0x00, which is obviously wrong.
A work-around of this would be to set directly the keycode as the key instead of the number.
Here is an output of skhd -V
:
hotkey :: #62 {
mod: 'cmd'
mod: 'alt'
key: '4' (0x00)
cmd: 'yabai -m space --focus 4 || skhd -k "ctrl + alt + cmd - 4"'
}
hotkey :: #63 {
mod: 'cmd'
mod: 'alt'
key: '5' (0x00)
cmd: 'yabai -m space --focus 5 || skhd -k "ctrl + alt + cmd - 5"'
}
hotkey :: #64 {
mod: 'cmd'
mod: 'alt'
key: '0x16' (0x16)
cmd: 'yabai -m space --focus 6 || skhd -k "ctrl + alt + cmd - 6"'
}
hotkey :: #65 {
mod: 'cmd'
mod: 'alt'
key: '7' (0x00)
cmd: 'yabai -m space --focus 7 || skhd -k "ctrl + alt + cmd - 7"'
}
hotkey :: #66 {
mod: 'cmd'
mod: 'alt'
key: '8' (0x00)
cmd: 'yabai -m space --focus 8 || skhd -k "ctrl + alt + cmd - 8"'
}
What's your input source locale? Your samples have worked fine for me for like 7 years at this point.
What's your input source locale? Your samples have worked fine for me for like 7 years at this point.
my keyboard is set as fr-FR and my keyboard is AZERTY. skhd -o
returns the correct keycode btw.
Same problem here with a french macbook pro (azerty keyboard).
Same problem here with a french macbook pro (azerty keyboard).
That was with my Macbook Pro with azerty keyboard, I don't have time to do a PR to fix that, but just use skhd -o
and set the keycode manually in the config file. E.g: 0x16
Same here with an Azerty keyboard. Works fine with keycode