Package Details: opensnap 0.1-1

Git Clone URL: https://aur.archlinux.org/opensnap.git (read-only)
Package Base: opensnap
Description: Aero Snap Funcionality In Openbox
Upstream URL: https://github.com/lawl/opensnap
Submitter: deadhead
Maintainer: E5ten
Last Packager: E5ten
Votes: 3
Popularity: 0.035151
First Submitted: 2017-03-14 03:39
Last Updated: 2018-03-31 08:44

Dependencies (1)

Required by (0)

Sources (1)

Pinned Comments

E5ten commented on 2018-03-31 08:56

To make unsnapping work replace <mousebind button="Left" action="Drag">...</mousebind> in <context name="Titlebar"> with

  <mousebind button="Left" action="Drag">
    <!-- Unsnap if snapped-->
    <action name="if">
      <maximizedvertical>yes</maximizedvertical>
      <then>
        <action name="Unmaximize"/>
          <direction>vertical</direction>
        <action name="MoveResizeTo">
          <x>center</x>
          <!-- we center windows in order to mitigate discrepancies 
          between window placement and mouse cursor -->
          <y>current</y>
        </action>
        <action name="Move"/>
      </then>
      <else>
        <action name="Move"/>
      </else>
    </action>
  </mousebind>

in ~/.config/openbox/rc.xml

Latest Comments

E5ten commented on 2018-03-31 08:56

To make unsnapping work replace <mousebind button="Left" action="Drag">...</mousebind> in <context name="Titlebar"> with

  <mousebind button="Left" action="Drag">
    <!-- Unsnap if snapped-->
    <action name="if">
      <maximizedvertical>yes</maximizedvertical>
      <then>
        <action name="Unmaximize"/>
          <direction>vertical</direction>
        <action name="MoveResizeTo">
          <x>center</x>
          <!-- we center windows in order to mitigate discrepancies 
          between window placement and mouse cursor -->
          <y>current</y>
        </action>
        <action name="Move"/>
      </then>
      <else>
        <action name="Move"/>
      </else>
    </action>
  </mousebind>

in ~/.config/openbox/rc.xml

mechatrex commented on 2017-10-31 07:58

You have a typo in the dependencies it should be "wmctrl".