noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[FEATURE] Hot Edges and pressure

Open tokebe opened this issue 2 months ago • 0 comments

Submission checklist

  • [x] I have searched existing issues and confirmed this has not been requested before.
  • [x] I have checked existing pull requests for similar changes.

Feature type

New functionality

Feature summary

Configurable-width hot edges in addition to existing hot corners, and a 'pressure' model to gate activation by cursor movement rather than delayed activation.

Motivation / use case

Much like hot corners, hot edges can be very useful. Particularly, in other DEs I used to set up a hot bottom edge to toggle the overview. A hot edge wherever one might place the dock or taskbar can feel very intuitive, moreso than a corner, especially on ultrawide monitors.

A pressure model makes hot edges (and corners!) more powerful. It greatly reduces accidental activation, while not introducing a specific wait period to slow down activation.

Instead of activating on hitting the edge, or staying there for a set duration, the cursor hits the edge of the screen, and then the user must intentionally continue moving the cursor out as if to move beyond the edge, up to a certain threshold (usually measured in pixels of hypothetical movement). This can be a single stage (just requires cursor speed to cause x many pixels of movement "past" the edge to trigger) or two-stage (cursor must hit the edge and then, as a separate movement/increase in speed, move x many pixels "past" the edge).

It creates a very noticeable sense of intentionality to the activation and movement while keeping it very fluid.

Proposed solution

Add a "Hot Edges" section to the Desktop settings tab, with the same layout as the "Hot Corners" section, but with left, right, top, bottom edges, with each also having a width slider in percent. Anywhere along the defined percent of that edge is an activation region. Probably should have a monitor filter akin to the dock/toasts settings as well?

Add a "Pressure" slider to both the Hot Corners and Hot Edges section, which defaults to 0. At 0, it doesn't influence existing activation behavior. Past 0, additional cursor movement toward the activation trigger up to that threshold is required to activate. If Activation Delay is also nonzero, I imagine it should ignore pressure?

Alternatives considered

I've tried Waycorner but its lack of pressure model makes it less than ideal.

References / related projects

The Gnome addon Hot Edge implements the pressure model as a single-stage, for an example.

Additional context

Thank you to the team for this very active and community-engaged project ❤️

tokebe avatar Sep 30 '26 16:09 tokebe