Skip to content

1.0.0-alpha.2: global hotkeys - #3

Merged
glani merged 1 commit into
mainfrom
feature/hotkeys
Nov 8, 2026
Merged

glani merged 1 commit into
mainfrom
feature/hotkeys

Conversation

@glani

@glani glani commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Global hotkeys for SMBAct on GNOME Wayland, same API 1 (the new ops are listed in hello).

  • grabAccelerator {accelerator} / ungrabAccelerator {accelerator} (GTK notation): Mutter accelerator grabs, the way GNOME grabs its custom shortcuts; they fire whatever window has the focus, in the NORMAL and OVERVIEW action modes only (never the lock screen). GRAB_FAILED when another shortcut has the combination.
  • accelerator event with the accelerator and the key press's timestamp.
  • Grabs belong to the owner of com.giglabo.SMBAct: released when it goes away or changes and on disable. GNOME disables extensions while the screen is locked; clients grab again when the plugin's name comes back (PROTOCOL.md).
  • A freshly enabled plugin asks the bus for the client's owner when its name watcher has not answered yet (SMBAct grabs again right after an unlock).
  • scripts/call.py --grab '<Control><Alt>j' 30 holds a hotkey and prints its presses.
  • metadata: version 2, version-name 1.0.0-alpha.2.

Checked in an Ubuntu 26.04 VM (GNOME Shell 50.1) with real key presses: 27 of 27 SMBAct default hotkeys grabbed, presses with a Wayland window in focus, <Super>Up refused (GNOME's own), grabs released after kill -9 of the client, grabbed again after lock/unlock and after disable/enable.

🤖 Generated with Claude Code

…celerator event)

Mutter accelerator grabs owned by the current client of com.giglabo.SMBAct: released
when it goes away or changes and on disable; NORMAL | OVERVIEW action modes (never
the lock screen). A freshly enabled extension asks the bus for the client's owner
when its watcher has not reported yet (GNOME re-enables extensions after every
unlock and SMBAct grabs again right away). scripts/call.py --grab holds a hotkey and
prints its presses. Same API 1; the new ops are listed in hello.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@glani
glani merged commit ff3cee7 into main Nov 8, 2026
1 check passed
@glani
glani deleted the feature/hotkeys branch November 8, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant