penrose
penrose copied to clipboard
Error 'XF86Calculator' is an invalid key binding
Describe the bug
Unable to bind XF86Calculator key
To Reproduce
Steps to reproduce the behavior:
- add key binding
"XF86Calculator" => run_external!(CALCULATOR); - try to build window manager
cargo build --release - See an error
$ cargo build --release
Compiling window-manager v0.1.0 (/home/paranoid/projects/rust/window-manger)
error: proc macro panicked
--> src/main.rs:51:24
|
51 | let key_bindings = gen_keybindings! {
| ________________________^
52 | | // Program launchers
53 | | "M-p" => run_external!(LAUNCHER);
54 | | "M-grave" => run_external!(LAUNCHER);
... |
100 | | };
101 | | };
| |_____^
|
= help: message: 'XF86Calculator' is an invalid key binding: 'XF86Calculator' is not a known key: run 'xmodmap -pke' to see valid key names
Key bindings should be of the form <modifiers>-<key name> or <key name> e.g: M-j, M-S-slash, M-C-Up, XF86AudioMute
= note: this error originates in the macro `__private` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `window-manager` due to previous error
Expected behavior
Application is built.
Screenshots

Versions & OS Details
- OS: [e.g. linux/fedora]
- OS Version [e.g. 36]
- Penrose Version [#0.2.1]
Additional context
!!! Other XF86* bindings works correctly
$ xmodmap -pke | grep XF86Calculator
keycode 148 = XF86Calculator NoSymbol XF86Calculator