global-hotkey

Register and handle cross-platform global keyboard shortcuts on Windows, macOS, and X11.

28|6|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/johnlindquist/script-kit-next --skill global-hotkey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: global-hotkey
Source: https://github.com/johnlindquist/script-kit-next/tree/main/.opencode/skill/global-hotkey
Command: npx skills add https://github.com/johnlindquist/script-kit-next --skill global-hotkey

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the registration of system-wide keyboard shortcuts that function even when the application is not in focus, ensuring consistent control across your workflow.

Core Features & Use Cases

  • Cross-Platform Support: Works on Windows, macOS, and Linux (X11).
  • Flexible Registration: Register individual or multiple hotkeys with various modifier and key combinations.
  • Event Handling: Receive and process hotkey press and release events.
  • Use Case: Set a global shortcut like Ctrl+Alt+P to instantly launch your preferred note-taking application, regardless of what you're currently working on.

Quick Start

Register a global hotkey for 'Shift+Meta+K' using the provided Rust library.

Frequently Asked Questions about global-hotkey

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register system-wide keyboard shortcuts in Rust?

To register system-wide keyboard shortcuts in Rust, use this Skill to manage cross-platform global hotkey registration, allowing activation independent of application focus on Windows, macOS, and Linux.

Can I use global shortcuts to trigger actions when my application is not in focus?

Yes, global shortcuts trigger actions even when your application lacks focus. This Skill handles system-wide keyboard combinations like Ctrl+Alt+P to launch external programs seamlessly.

Does this global hotkey library support Linux and macOS operating systems?

This global hotkey library supports cross-platform environments including Windows, macOS, and X11 on Linux, ensuring consistent system-wide keyboard shortcut activation across different operating systems.

How do I handle global hotkey press and release events in an event loop?

Handle global hotkey press and release events by integrating this Skill with your application's event loop for real-time processing of system-wide keyboard shortcut activations.

What is the best way to set a global shortcut like Ctrl+Alt+P to launch an application?

The best way to set a global shortcut like Ctrl+Alt+P is using this Skill's flexible registration to map modifier and key combinations for system-wide application launching.

Are there limitations when registering multiple global hotkeys for X11 on Linux?

When registering multiple global hotkeys on X11 Linux, limitations may arise from system-level keyboard shortcut conflicts or desktop environment restrictions independent of this Skill's cross-platform event handling capabilities.