1
0
Fork
You've already forked hedges
0
No description
  • C 56.2%
  • Shell 43.8%
2026年06月27日 10:08:50 +04:00
clickeater.c Change copyright info. 2026年06月21日 11:38:19 +04:00
hedges.sh Change tmp output filename. 2026年06月27日 10:08:50 +04:00
LICENSE The first. 2026年06月20日 21:42:21 +04:00
README.md Add configuration part in readme. 2026年06月21日 14:22:22 +04:00

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).