Skip to content
FelipeFMAvelarPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Here

Here

A tiny Windows 11 utility that makes new windows open on the monitor where your cursor is.

Most of the time Here sits quietly in the system tray. When it is enabled, every newly spawned top-level window is moved — instantly — to the monitor you choose (cursor monitor, a specific monitor, or the monitor of the last active window).

Badge Badge Badge

Features

  • Cursor-follow window spawning — feel like windows open on the right monitor.
  • Mode dropdown — cursor / your connected displays (by friendly name) / Last active window.
  • Acrylic Windows 11 UI built with WinUI 3.
  • System tray resident — runs in the background; show the window by clicking the tray icon.
  • Start with Windows (optional) — recorded under HKCU\…\Run, no admin needed.
  • Run elevated (optional) — also moves windows spawned by Task Manager, installers, etc.
  • Sub-millisecond latency — uses SetWinEventHook out-of-context, so the move completes before the window has the chance to draw on the wrong monitor.

Screenshots

Screenshots
Home Settings About

Requirements

  • Windows 11 (also works on Windows 10 2004 / build 19041+)
  • .NET 10 SDK
  • Provided via NuGet (no extra workload install needed):
    • Microsoft.WindowsAppSDK 2.3.1
    • H.NotifyIcon.WinUI 2.4.1
    • CommunityToolkit.Mvvm 8.4.2
    • Microsoft.Extensions.DependencyInjection 10.0.11
    • Microsoft.Extensions.Hosting 10.0.11

Build

dotnet build -c Release

Run

dotnet run --project src/Here/Here.csproj -c Release

When the application launches it hides itself to the tray. Click the tray icon to open the acrylic settings window.

Project layout

src/Here/
  Program.cs                    Custom entry point: single-instance enforcement + elevation handoff.
  App.xaml / App.xaml.cs        DI container, tray + main window bootstrap.
  Activation/
    ActivationService.cs       Decides tray-vs-window activation.
  Services/
    SettingsService.cs          JSON-backed settings at %AppData%\Here\settings.json
    WindowInterceptorService.cs Low-latency SetWinEventHook mover.
    MonitorService.cs           EnumDisplayMonitors + cursor lookup + friendly display names.
    TrayService.cs              H.NotifyIcon.WinUI tray integration.
    StartupService.cs           HKCU Run-key toggling.
    ElevationService.cs         Detects elevation state and restarts elevated / non-elevated.
  ViewModels/                   CommunityToolkit.Mvvm sources.
  Views/
    MainWindow.xaml             Acrylic host with left nav.
    Pages/
      HomePage.xaml             Big start/stop toggle + status.
      SettingsPage.xaml         Per-card settings with helper text.
      AboutPage.xaml            Author + GitLab link.
  Helpers/
    Win32Interop.cs             All P/Invoke signatures.
    MonitorInfo.cs              Monitor DTO and hit-test helpers (points / windows).
  Models/
    SpawnMode.cs                CursorMonitor / Monitor (by friendly name) / LastActiveWindow.
    AppSettings.cs              Persisted settings DTO.

Author

Felipe Figueiredo Matias Avelar

Source: https://gitlab.com/felipefmavelar/here

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages