← 返回
效率工具 中文

Linux GUI Control

Control the Linux desktop GUI using xdotool, wmctrl, and dogtail. Use when you need to interact with non-browser applications, simulate mouse/keyboard input, manage windows, or inspect the UI hierarchy of applications on X11/GNOME. Supports: (1) Clicking/typing in apps, (2) Resizing/moving windows, (3) Extracting text-based UI trees from apps (A11y), (4) Taking screenshots for visual analysis.
使用 xdotool、wmctrl 和 dogtail 控制 Linux 桌面 GUI。适用于与非浏览器应用交互、模拟鼠标/键盘输入、管理窗口或检查 X11/GNOME 上的应用 UI 层级。支持:(1) 在应用中点击/输入,(2) 调整窗口大小/移动窗口,(3) 提取应用的文本 UI 树 (A11y),(4) 截图进行视觉分析。
dreamtraveler13
效率工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 10
Stars
📥 11,382
下载
💾 29
安装
1
版本
#latest

概述

Linux GUI Control

This skill provides tools and procedures for automating interactions with the Linux desktop environment.

Quick Start

1. Identify Target Window

Use wmctrl to find the exact name of the window you want to control.

wmctrl -l

2. Inspect UI Hierarchy

For apps supporting accessibility (GNOME apps, Electron apps with --force-renderer-accessibility), use the inspection script to find button names without taking screenshots.

python3 scripts/inspect_ui.py "<app_name>"

3. Perform Actions

Use xdotool via the helper script for common actions.

# Activate window
./scripts/gui_action.sh activate "<window_name>"

# Click coordinates
./scripts/gui_action.sh click 500 500

# Type text
./scripts/gui_action.sh type "Hello World"

# Press a key
./scripts/gui_action.sh key "Return"

Workflows

Operating an App via Text UI

  1. List windows with wmctrl -l.
  2. Activate the target window.
  3. Run scripts/inspect_ui.py to get the list of buttons and inputs.
  4. Use xdotool key Tab and Return to navigate, or click if coordinates are known.
  5. If text-based inspection fails, fallback to taking a screenshot and using vision.

Forcing Accessibility in Electron Apps

Many modern apps (VS Code, Discord, Cider, Chrome) need a flag to expose their UI tree:

pkill <app>
nohup <app> --force-renderer-accessibility > /dev/null 2>&1 &

Tool Reference

  • wmctrl: Window management (list, activate, move, resize).
  • xdotool: Input simulation (click, type, key, mousemove).
  • dogtail: UI tree extraction via AT-SPI (Accessibility bus).
  • scrot: Lightweight screenshot tool.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-27 23:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,024
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,420
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,937