A rigid, spartan and light program, supposed to run in background, that launches commands on mouse events in certain regions of screen. inspired by Tavis Ormandy's hotcorner
hotcorners/
relative to executableshell:startup
[!IMPORTANT] Windows binary is dynamically linked to Microsoft c++ runtime, so needs the installation of
VC_redist.x64.exe
as prerequisite.[!TIP] To kill the process use the task manager or:
$ Taskkill /IM "hotcorners.exe" /F
[top]
[top-left] ┌─┬──════════──┬─┐ [top-right]
├─┘ └─┤
║ ║
[left] ║ ║ [right]
└────────────────┘
left-band-left-click.lnk |
mouse left click on the left band |
left-band-middle-click.lnk |
mouse middle click on the left band |
left-band-x-click.lnk |
mouse extended click on the left band |
left-band-wheel-down.lnk |
mouse wheel down on the left band |
left-band-wheel-up.lnk |
mouse wheel up on the left band |
------------------------------ | -------------------------------------------- |
right-band-left-click.lnk |
mouse left click on the right band |
right-band-middle-click.lnk |
mouse middle click on the right band |
right-band-right-click.lnk |
mouse right click on the right band |
right-band-x-click.lnk |
mouse extended click on the right band |
right-band-wheel-down.lnk |
mouse wheel down on the right band |
right-band-wheel-up.lnk |
mouse wheel up on the right band |
------------------------------ | -------------------------------------------- |
top-band-left-click.lnk |
mouse left click on the top band |
top-band-x-click.lnk |
mouse extended click on the top band |
top-band-wheel-down.lnk |
mouse wheel down on the top band |
top-band-wheel-up.lnk |
mouse wheel up on the top band |
------------------------------ | -------------------------------------------- |
top-right-left-click.lnk |
mouse left click on the top-right corner |
top-right-middle-click.lnk |
mouse middle click on the top-right corner |
top-right-wheel-down.lnk |
mouse wheel down on the top-right corner |
top-right-wheel-up.lnk |
mouse wheel up on the top-right corner |
[!NOTE]
- The top-left corner is not configurable and reserved to launch the Windows Task View on hovering
- The bottom corners are reserved for start menu and show desktop
- Right opens a context menu so it's exceptionally defined just for the right band
Configuration parameter are hard coded (👀) in the source:
constexpr int corner_size = 5; // [pix] Corner area size
constexpr unsigned int dwell_time = 300; // [ms] Cursor dwell time for auto-trigger
#define ACTIONS_FOLDER "hotcorners\\"
The folder where put the links of your actions is defined by
the string literal defined with ACTIONS_FOLDER
.
If you want to change it you have three options:
> cd /d path\of\hotcorners-executable
> mklink /j "hotcorners" path\to\existing\folder
With Microsoft Visual Studio:
> git clone https://github.com/matgat/win-hotcorners.git
> cd win-hotcorners/build
> msbuild hotcorners.vcxproj -t:Rebuild -p:Configuration=Release -p:Platform=x64
> ./bin/win-x64-Release/hotcorners.exe