Giter Club home page Giter Club logo

hotcorner's Introduction

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.

hotcorner's People

Contributors

asamy avatar ismail avatar taviso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hotcorner's Issues

Option to disable hotcorner in fullscreen programs

Hello! Thanks so much for writing this program. It is exactly what I was looking for and it is working near perfectly.

My one issue is that when I am playing games or using other fullscreen programs, the hot corner is not disabled and takes me out of what I am doing. I assume some users would want this functionality, so it would probably be best to add an option to disable this.

I will look into making a pull request that adds this option when I have time.

Binary uninstall and startup item

I launched the binary and it works. Thank you! Did it make it a startup item after running the binary? I don't see it listed, so do I need to do that manually somehow? Also, what's the uninstall process for the binary?

Multiple Screens

Is it possible to get this working on multiple screens? I can't see an option for this in the compile section...
-edit forgot to say, nice work!

Coordinate changes

What are left-bottom coordinates ? Tried everything and nothing work so far.
These are default left-top:
static const RECT kHotCorner = {
.top = -20,
.left = 20,
.right = +20,
.bottom = +20,
};

Questions for the community

Perhaps someone has a version of the application with support for multiple monitors and automatic suspension of the program when another program is open in full-screen mode? If you could share it, I would be very grateful ☺️

Extraction of Malicious Binaries

Hi, Can any one help me in extraction of malicious binaries(constant strings) in android application? I am new to this and don't know that how can I extract constant strings from manifest.xml file.

Nothing happens at all

So I downloaded the latest release, unpacked it and double clicked hotcorner.exe. What now? Nothing happens, nothing shows up. What is supposed to happen?

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.