Keybind action on key release

Hello,

Is there a way to define an action on key release?

I’ve added this on rc.xml:

    <keybind key="Super_L">
      <action name="Execute">
        <command>jgmenu</command>
      </action>
    </keybind>

It works when pressing the left Win key, but I want it fire when the key is released (as in Plasma), to allow other key combination using Super w/o the menu being activated.

TIA

1 Like

You can use xcape to bind the tap of the super key (say to alt-f1) to launch the menu, this leaves the “hold” of the key still available (hope that makes sense!!).

xcape -e "Super_L=Super_L|e"&!

As a quick example copied from my qtile config.

xcape is in the repos:

3 Likes