Skip to content

GNOME Shell extension and protocol, API 1 - #1

Merged
glani merged 3 commits into
mainfrom
feat/gnome-extension-api1
Nov 8, 2026
Merged

glani merged 3 commits into
mainfrom
feat/gnome-extension-api1

Conversation

@glani

@glani glani commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

The first version of the SMBAct GNOME Shell extension (smbact@giglabo.com, GNOME Shell 46–51) and the protocol both sides follow (PROTOCOL.md).

  • D-Bus com.giglabo.SMBAct.Shell1: JSON requests in Call, Event signal (windowsChanged, focusChanged). Only the owner of com.giglabo.SMBAct may call.
  • Operations: hello, listWindows (icons, X11 ids, stacking), getWindow, activeWindow, moveResize (frame or client rect, two steps for windows with resize increments), activate, raise, setState, close, showDesktop, displays, pointer, iconPng. Requests accept the X11 id of an XWayland window as id.
  • scripts/pack.sh builds the zip, scripts/call.py calls the extension by hand.
  • GitHub Actions: checks and the zip on every push and pull request; a tag vX.Y.Z (equal to version-name) publishes a release with the zip and SHA256SUMS.

Checked on GNOME Shell 50.1 (Ubuntu 26.04), Wayland, two monitors at mixed scales, with SMBAct's GNOME backend driving it.

🤖 Generated with Claude Code

glani and others added 3 commits November 8, 2026 13:38
com.giglabo.SMBAct.Shell1 over D-Bus (JSON in Call, Event signal): window list with icons and
X11 ids, getWindow, activeWindow, moveResize (two steps, so windows with resize increments keep
the position), activate, raise, setState (minimized, maximized, horizontal / vertical,
fullscreen, above), close, showDesktop, displays, pointer; windowsChanged / focusChanged events.
Only the owner of com.giglabo.SMBAct may call. GNOME Shell 46-51.

scripts/pack.sh builds the zip for gnome-extensions install; scripts/call.py calls the
extension by hand. Checked on GNOME Shell 50.1 (Ubuntu 26.04), Wayland, two monitors at mixed
scales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tags

ci.yml: syntax of extension.js, call.py and metadata.json, then the zip as an artifact.
release.yml: a tag vX.Y.Z (must equal metadata.json version-name) publishes the zip and
SHA256SUMS as a GitHub release, which SMBAct pins. getWindow / activeWindow take icons too,
moveResize takes a client rect (space: client), iconPng turns an SVG icon into PNG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SMBAct knows its own windows by their X11 ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@glani
glani merged commit 9033fc8 into main Nov 8, 2026
1 check passed
@glani
glani deleted the feat/gnome-extension-api1 branch November 8, 2026 13:09
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