| clickeater.c | Change copyright info. | |
| hedges.sh | Change tmp output filename. | |
| LICENSE | The first. | |
| README.md | Add configuration part in readme. | |
hedges.sh
The name is a partial acronym for "Hot edges and corners" :-)
This script tries to mimic the behavior of a pretty old branch of openbox code. It creates a screen perimeter command launcher by defining 8 "hot" left-mouse-button-clickable zones: 4 edges and 4 corners. This lets you run frequently needed programs without looking or keeping track of the cursor — just by moving your mouse "to the metal" to the edge or a corner of the screen and clicking there. And since launching is done by a click, it eliminates common false activations in similar "hot corners" launchers that start programs on cursor hover.
It uses helper program "clickeater" that consumes the clicks so they don’t affect other windows. Only left clicks are tracked; right clicks, middle clicks, and mouse-wheel movements are passed through as intended, so context menus with right click and switching desktops with the wheel still work normally.
Works well with app-and-toggle-by-title.sh.
Installation
It's pretty straightforward I guess. Needs xdotool, xdpyinfo, awk, bash and gcc for building the helper (duh). Build clickeater with
gcc -O2 -Wall -o clickeater clickeater.c -lX11
Then put it and hedges.sh somewhere and launch hedges.sh.
Configuration
All inside hedges.sh. Most important is the path to the clickeater probably :-)
Unless otherwise stated in the sources, all code is released under the GPL3 license (see LICENSE).