penrose icon indicating copy to clipboard operation
penrose copied to clipboard

Error 'XF86Calculator' is an invalid key binding

Open itcreator opened this issue 3 years ago • 0 comments

Describe the bug

Unable to bind XF86Calculator key

To Reproduce

Steps to reproduce the behavior:

  1. add key binding "XF86Calculator" => run_external!(CALCULATOR);
  2. try to build window manager cargo build --release
  3. 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

image

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

itcreator avatar Sep 19 '22 19:09 itcreator