• Stars
    star
    380
  • Rank 112,766 (Top 3 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created almost 8 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tiny Hot Corners for Windows 10

Tiny Hot Corners for Windows 10

In GNOME 3 whenever you move the mouse to the top left corner, GNOME switches to the activities view, it looks like this:

Gnome Activities

Whenever I'm using Windows 10, I always forget that this doesn't work. Bleh.

I searched around for existing solutions, and wasn't happy with anything I could find.

The options seem to be

  • Some ridiculous AutoHotKey monstrosity (?!?).
  • Massive Delphi application with 100MB of resources.
  • Some naive program that polls GetCursorPos() in a busy loop.

None of these are what I want, I just want that GNOME 3 thing with absolute minimal overhead.

This is a very minimal hotcorner app, written in C. You can adjust parameters, delays, bindings easily and recompile.

Zero state is stored anywhere, no registry keys or configuration files.

  • If you want to configure something, edit the code and recompile.
  • If you want to uninstall it, just delete it.

Instructions

Change any of the parameters, compile, then install.

A binary is available here if you prefer.

Building

> nmake

Installing

> copy hotcorner.exe "%USERPROFILE%\Start Menu\Programs\Startup"

(or nmake install)

Uninstalling

> del "%USERPROFILE%\Start Menu\Programs\Startup\hotcorner.exe"

(or nmake uninstall)

If you don't have cl or nmake, they come with Visual Studio (or the Windows SDK, I think).

Additionally, it is possible to build hotcorner on Linux using MinGW.

$ x86_64-w64-mingw32-windres version.rc -O coff -o version.res $ x86_64-w64-mingw32-gcc -O2 hotcorner.c version.res -o hotcorner.exe -Wl,-subsystem,windows

Configuration

All configuration requires modifying the parameters in hotcorner.c and recompiling.

  • RECT kHotcorner - The coordinates of the hot zone.
  • INPUT kCornerInput[] - Input sent on activation.
  • DWORD kHotKeyModifiers - Modifier Keys (shift, alt, ctrl, etc) you want to enable the hotkey function.
  • DWORD kHotDelay - How long the pointer must wait in the corner before being activated.

License

GPL3

Authors

  • Tavis Ormandy @taviso - Original Author
  • Ahmed Samy @asamy - HotKey support

Variations

I've made a deliberate decision to keep hotcorner as simple as possible, here are some variations that other users have made that suit their needs better.

FAQ

  • Q: I don't want to compile it, can't you just give me an exe? :(

  • A: Checkout the releases, here.

  • Q: Can you change a setting, and then compile it for me?

  • A: No.

  • Q: This doesn't work with my Application/Configuration/Whatever!

  • A: File an issue, if it's feasible to workaround I'll try.

  • Q: How do I turn it off without rebooting?

  • A: You can use CTRL+ALT+C to completely shut down the application.

  • Q: Why doesn't it work if my current program is running as an Administrator?

  • A: UIPI. I suppose you could "Run As Administrator" if it bothers you.

More Repositories

1

loadlibrary

Porting Windows Dynamic Link Libraries to Linux
C
4,330
star
2

ctypes.sh

A foreign function interface for bash.
C
2,060
star
3

ctftool

Interactive CTF Exploration Tool
C
1,636
star
4

123elf

A native port of Lotus 1-2-3 to Linux.
C
1,171
star
5

avscript

Avast JavaScript Interactive Shell
C
664
star
6

wpunix

WordPerfect for UNIX Character Terminals
C
615
star
7

rbndr

Simple DNS Rebinding Service
C
613
star
8

nntpit

minimalist reddit2nntp gateway
C
231
star
9

rarvmtools

Minimal RarVM Toolchain
C
228
star
10

cefdebug

Minimal code to connect to a CEF debugger.
C
193
star
11

lotusdrv

Lotus 1-2-3 R4D Display Driver for DOSEMU
C
147
star
12

kiewtai

A port of Kaitai to the Hiew hex editor
C
144
star
13

sharapi

Simpsons: Hit & Run JavaScript API
JavaScript
112
star
14

swisstable

Access Abseil Swiss Tables from C
C
103
star
15

dbusmap

This is a simple utility for enumerating D-Bus endpoints, an nmap for D-Bus.
C
76
star
16

scanlimits

Tool to examine the behaviour of setuid binaries under constrained limits.
C
62
star
17

katamascii

An ascii-art physics puzzle, roll around your terminal collecting ascii-art objects!
C
43
star
18

timex

A hello world for the timex m851
C
31
star
19

minirun

Run commands with hidden console.
C
30
star
20

iknowthis

iknowthis Linux SystemCall Fuzzer
C
20
star
21

hiewdocs

Documentation and notes on using the Hiew editor.
HTML
17
star
22

mpgravity

MicroPlanet Gravity
C++
14
star
23

nssecurity

Netscape Plugin Security
C
8
star
24

defermap

Add a server mode to X11 clients
C
7
star
25

hiewkey

Keyboard helper for Hiew
C
4
star
26

wpdfilter

Enable Windows to Index WordPerfect UNIX Documents
C++
3
star
27

ncpro

Commandline Interface to NoteCase Pro
Shell
1
star
28

stfjson

Convert Lotus Agenda STF files to JSON
C
1
star