clicksnap/README.md

37 lines
886 B
Markdown
Raw Permalink Normal View History

2021-05-03 17:12:48 +02:00
# clicksnap
clicksnap for Openbox - click on the appropriate area of the window to snap it in a given direction.
Works with active and inactive windows.
Configurable gap between windows.
2021-05-03 17:12:48 +02:00
2021-05-03 21:17:27 +02:00
*(Far from perfection, but imho already enough good to use)*
2021-05-03 17:18:52 +02:00
## Requirements
- wmctrl
- xdotool
- xwininfo
2021-05-03 17:18:52 +02:00
## Installation
wget https://git.maboxlinux.org/napcok/clicksnap/raw/branch/master/clicksnap
chmod +x clicksnap
2021-05-03 17:12:48 +02:00
Add this mousebind action to context Frame:
<mousebind action="Press" button="C-Left">
<action name="UnmaximizeFull"/>
<action name="Execute">
<command>clicksnap</command>
</action>
</mousebind>
2021-05-03 20:27:42 +02:00
## Usage
2021-05-03 17:15:17 +02:00
clicksnap is binded to <kbd>Ctrl</kbd> + <kbd>Left Mouse Click</kbd>
2021-05-03 20:27:42 +02:00
Click inside window you like to move.
2021-05-03 21:17:27 +02:00
There are 9 areas ... see screenshot :)
2021-05-03 17:12:48 +02:00
![clicksnap](clicksnap.png "clicksnap areas")
## Configuration