linux-gui-control
Control the Linux desktop GUI using xdotool, wmctrl, dogtail, and scrot. Provides a window list, an accessibility-tree viewer (with coordinates) for finding…
от HKU-MMLab★ 40 звёзд на GitHub
Установить linux-gui-control в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Linux GUI Control
Use this skill when you need to automate X11 desktop applications inside the sandbox.
Core flow
The flow is deliberately two-stage:
- Look at the accessibility tree to find what widgets exist, where they are, and what they're called.
- Act on them via xdotool (click coordinates, type text, press keys), using the coordinates from step 1.
This keeps actuation simple (no magic clicking-by-name), and makes it obvious to everyone reviewing the transcript exactly which button was targeted.
Quick start
List windows:
wmctrl -lInspect the accessibility tree of a window. Returns JSON with
role / name / x / y / w / hfor every reachable widget:./scripts/gui_action.sh inspect "<window-title-substring>"or directly:python3 ./scripts/inspect_ui.py "<window-title-substring>"Shortcut for a single widget — prints
"x y w h"on one line so you can xargs it straight into xdotool:./scripts/gui_action.sh find "<window>" "<widget-name>" [--role R]Activate a window (bring to front, give focus):
./scripts/gui_action.sh activate "<window-name>"Click / type / send a key (coordinate-based, via xdotool):
./scripts/gui_action.sh click 500 400./scripts/gui_action.sh type "hello"./scripts/gui_action.sh key ReturnLaunch GUI applications with accessibility enabled (recommended for any Electron / Chromium-based app; see the framework matrix below for why):
./scripts/launch_with_a11y.sh <app> [args...]
Important usage rules
- Treat text entry and special keys as separate actions.
- Use
typeonly for literal text that should appear on screen. - Use
keyfor keys such asReturn,Tab,Escape,ctrl+l, or arrow keys. - Do not put strings like
keyReturn,Return, orctrl+linside atypecommand unless you really want those characters typed into the UI. - For browser address bars and search boxes:
- activate the window
- focus the target field
typethe URL or search text- send
key Returnas a separate action - wait for the page to load before taking a screenshot
Typical Save / Open dialog workflow
# Step A — trigger the dialog inside the app (Ctrl+S / Ctrl+Shift+S
# / File > Save As menu, whatever the app uses):
./scripts/gui_action.sh activate "<main window title>"
./scripts/gui_action.sh key ctrl+shift+s
sleep 1.5 # let the dialog fully open; don't race it
# Step B — look at the dialog. Get `x y w h` of the Save button
# and of the filename entry:
read SAVE_X SAVE_Y SAVE_W SAVE_H < <(./scripts/gui_action.sh find "Save As" "Save" --role "push button")
# Step C — compute center and click:
./scripts/gui_action.sh click $((SAVE_X + SAVE_W/2)) $((SAVE_Y + SAVE_H/2))
Before Step B, consider gui_action.sh inspect "Save As" to dump the
whole tree — helpful when widget names are locale-specific or you don't
know the exact role.
Common browser patterns
Open a URL in Chromium (launch it with a11y enabled first — see below — if you also want
inspectto work on browser tabs):./scripts/launch_with_a11y.sh chromium &./scripts/gui_action.sh activate "Chrome"./scripts/gui_action.sh key ctrl+l./scripts/gui_action.sh type "https://example.com"./scripts/gui_action.sh key ReturnLaunch Chromium in a clean disposable profile when first-run pages would be distracting:
chromium --no-sandbox --no-first-run --disable-sync --no-default-browser-check --user-data-dir=/tmp/chromium-profile-task &Search from the browser address bar:
./scripts/gui_action.sh activate "Chrome"./scripts/gui_action.sh key ctrl+l./scripts/gui_action.sh type "your search query"./scripts/gui_action.sh key ReturnMove through page focus targets with the keyboard:
./scripts/gui_action.sh activate "Chrome"./scripts/gui_action.sh key Tab./scripts/gui_action.sh key Tab./scripts/gui_action.sh key ReturnVerify the current page URL:
./scripts/gui_action.sh activate "Chrome"./scripts/gui_action.sh key ctrl+l./scripts/gui_action.sh key ctrl+cxclip -o -selection clipboardIf a page body is blank or still rendering:
./scripts/gui_action.sh activate "Chrome"./scripts/gui_action.sh key ctrl+rsleep 3Take the screenshot only after visible page text or buttons appear.
Framework coverage: what inspect actually sees
The accessibility tree is populated by the application itself — it doesn't probe windows from outside. Whether a given app appears in the tree depends on its UI framework:
| framework | joins AT-SPI bus automatically? | what you need |
|---|---|---|
| GTK 2 / 3 / 4 | yes | nothing — the image sets GTK_MODULES=gail:atk-bridge |
| Qt 5 / 6 | yes | nothing — the image sets QT_ACCESSIBILITY=1 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/a11y.py
- scripts/gui_action.sh
- scripts/inspect_ui.py
- scripts/launch_with_a11y.sh
FAQ
Что делает скилл linux-gui-control?
Control the Linux desktop GUI using xdotool, wmctrl, dogtail, and scrot. Provides a window list, an accessibility-tree viewer (with coordinates) for finding buttons and text fields, a thin xdotool wrapper for actuating them, and a launcher helper that enables accessibility for Electron/Chromium apps.
Как установить скилл linux-gui-control?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл linux-gui-control запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…