Looking for Global-Hotkeys cross platform .net library (Windows, Linux, MacOS)

This page summarizes the projects mentioned and recommended in the original post on /r/dotnet

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • SharpHook

    SharpHook provides a cross-platform global keyboard and mouse hook, event simulation, and text entry simulation for .NET (by TolikPylypchuk)

    You could take a look at this: https://github.com/TolikPylypchuk/SharpHook It only supports X11 on Linux though.

  • xdg-desktop-portal

    Desktop integration portal

    Do note that Wayland doesn't support this by design. Apps can only get keypresses if their window is in focus (i.e. no key loggers). Support for global shortcuts in xdg-desktop-portal has recently been merged though and will allow apps/libraries to support an opt-in version of global shortcuts via org.freedesktop.portal.GlobalShortcuts. Tmds.DBus might be a good place to start for dbus implementations in dotnet.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • Tmds.DBus

    D-Bus for .NET

    Do note that Wayland doesn't support this by design. Apps can only get keypresses if their window is in focus (i.e. no key loggers). Support for global shortcuts in xdg-desktop-portal has recently been merged though and will allow apps/libraries to support an opt-in version of global shortcuts via org.freedesktop.portal.GlobalShortcuts. Tmds.DBus might be a good place to start for dbus implementations in dotnet.

  • Mumble

    Mumble is an open-source, low-latency, high quality voice chat software.

    There's a pending PR for mumble as a reference implementation (C++).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts