Keysym combos not working when using F13-20 and Numbers

0.54.1

So I have some lines that are like the following:

bind = $mainMod, F13&1, workspace, 11
bind = $mainMod, F13&2, workspace, 12

Though I can’t get the ..&.. to behave when using Function keys.

Currently nothing happens when using the above configs.

I have checked using wev that the correct keys are being pressed. Also tried using code: instead of F13-F15.

At this point I am kind of stumped, though I haven’t seen anyone else attempting what I am doing using keysyms combos with function keys. So it is possible that what I am trying to do just will not work.

Context on why I am trying to do it this way is I am using a macro pad to select which workspace I am using on a given monitor. So basically I have Mod+(F13-F15)+(1-6) bound to separate buttons. I would have done it by using more modifiers, e.g. using Atl/Ctrl, but I have encounter problems when using specific applications’ keybinds when doing this.

If you want to combine keys you have to use binds and use their keysyms.

I am aware, hence the usage of binds shown in my original message.

Furthermore I know the function keys are working as I have tested without the &1, &2, etc.

bind = $mainMod, F13&1, workspace, 11
bind = $mainMod, F13&2, workspace, 12

should be

binds = SUPER_L, F13&1, workspace, 11
binds = SUPER_L, F13&2, workspace, 12

If F13 are the keysyms.

2 Likes

Okay so with the direction @Ergon gave, I was able to pin down what I was doing wrong.

  • bind =/= binds
    • The letters after the word bind are modifiers, e.g. bindr or binde
  • binds need specifically the Keysyms, which means things like SUPER do not work as they actual Keysym is SUPER_L
    • keysyms are extremely specific, and you should match what the label wev produces for a given key.

I don’t mean to take the solution that @Ergon provided, but I wanted to provide a slightly better explanation for someone possibly making the same mistake I am making.