Assign middle mouse button to "always on top" function
  • This can be very useful, if like me you always need to keep one or more windows on top on your desktop, it's very useful to assign the middle mouse button to do it.

    So it is done by modifying the Openbox configuration file, which is located at ~/.config/openbox/lxde-rc.xml.

    Open that file and search for the following:
          </mousebind>
          <mousebind action="Press" button="Middle">
            <action name="Lower"/>
            <action name="FocusToBottom"/>
            <action name="Unfocus"/>
          </mousebind>

    and change it to:
          </mousebind>
          <mousebind action="Press" button="Middle">
            <action name="ToggleAlwaysOnTop"/>
            <action name="Focus"/>
          </mousebind>

    That's it, after your next login as you click the middle mouse button on the top frame of a window, it will be always on top; if you middle click on it again the window will be back to normal and so on.