skhd: Segfaults when using Function keys literals
Skhd segfaults when using function keys literals. Maybe I do not understand properly the syntax 😦
Here’s what happen:
❯❯❯ ~ skhd
skhd: using config '/Users/bigo/.skhdrc'
(#2) hotkey :: {
mod: 'cmd'
mod: 'alt'
key: 'q' (12)
cmd: 'brew services stop chunkwm'
}
(#5) hotkey :: {
mod: 'cmd'
mod: 'alt'
key: 'r' (15)
cmd: 'bash $HOME/.chunkwmrc'
}
(#8) hotkey :: {
mod: 'cmd'
mod: 'alt'
key: 'k' (40)
cmd: 'khd -e "reload"'
}
(#11) hotkey :: {
mod: 'cmd'
mod: 'alt'
key: 'u' (32)
cmd: 'bash -c "LPID=$(pgrep -f bersicht); kill $LPID; open -a Übersicht"'
}
(#14) hotkey :: {
mod: 'ctrl'
mod: 'shift'
key: 'f' (3)
(#14:17) expected token 'Token_Command', but got '1'
[1] 9304 segmentation fault skhd
And the config line causing the segfault is:
# block screen
ctrl + shift - f12 : m screensaver
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (8 by maintainers)
Commits related to this issue
- #2 don't segfault upon parse-error — committed to koekeishiya/skhd by koekeishiya 7 years ago
- #2 add function keys support to lexer — committed to koekeishiya/skhd by koekeishiya 7 years ago
- #2 print keycode as hexadecimal — committed to koekeishiya/skhd by koekeishiya 7 years ago
- #2 change how we lookup literals — committed to koekeishiya/skhd by koekeishiya 7 years ago
- #2 change how we lookup literals — committed to koekeishiya/skhd by koekeishiya 7 years ago
- #2 get rid of strncmp — committed to koekeishiya/skhd by koekeishiya 7 years ago
- #2 export function — committed to koekeishiya/skhd by koekeishiya 7 years ago
Yayyyyy. Great job as usual!! All working fine and it is way more performant than khd.