WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.32k stars 168 forks source link

<shift> KEY_NEXTSONG not working. #1590

Open Vladimir-csp opened 1 year ago

Vladimir-csp commented 1 year ago

Discussed in https://github.com/WayfireWM/wayfire/discussions/1551

Originally posted by **LinArcX** August 17, 2022 I want handle music position via pleryctl. This is what I've done so far: ``` command_forward_music = playerctl position 5+ binding_forward_music = KEY_NEXTSONG command_backward_music = playerctl position 5- binding_backward_music = KEY_PREVIOUSSONG ``` But it's not working. Any idea?

I have a similar problem: I set different actions for KEY_NEXTSONG, KEY_NEXTSONG, KEY_NEXTSONG, but command bound to KEY_NEXTSONG always fires even when pressing with modifiers. wayfire 0.7.4

-event7   KEYBOARD_KEY            +0.000s   KEY_RIGHTSHIFT (54) pressed
-event16  KEYBOARD_KEY            +2.328s   KEY_NEXTSONG (163) pressed
 event16  KEYBOARD_KEY            +2.376s   KEY_NEXTSONG (163) released
-event7   KEYBOARD_KEY            +3.543s   KEY_RIGHTSHIFT (54) released

But wayfire behaves as if only KEY_NEXTSONG was pressed. Same with KEY_PREVIOUSSONG

NamorNiradnug commented 1 year ago

Do you have a binding with just KEY_NEXTSONG? If you do, any other binding with the key won't work just because that's how wayfire currently works ig. WCM shows a warning about that.

Vladimir-csp commented 1 year ago

yes

binding_media_next = KEY_NEXT | KEY_NEXTSONG
binding_media_ff = <shift> KEY_NEXT | <shift> KEY_NEXTSONG
binding_media_ff_more = <ctrl> KEY_NEXT | <ctrl> KEY_NEXTSONG
Vladimir-csp commented 1 year ago

I do not see any warnings in ouptut. Is this limitation specific for multimeda keys? Because I can set different modifiers on other keys.

soreau commented 1 year ago

You should use wcm to pick the bindings to make sure you are binding the correct keys. There will be no warnings in log output.