← 返回
开发者工具 中文

Claw Mouse

Control a Linux X11 desktop by taking screenshots and moving/clicking/typing via xdotool + scrot.
通过 xdotool + scrot 实现 Linux X11 桌面的截屏、移动、点击和输入控制。
rylena
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 1,126
下载
💾 12
安装
1
版本
#latest

概述

claw-mouse

This skill provides a small, scriptable desktop GUI control helper for Linux X11.

It’s intended for “vision loop” automation:

1) take a screenshot

2) decide where to click

3) move/click/type

4) repeat

Under the hood it wraps:

  • scrot for screenshots
  • xdotool for mouse/keyboard/window control

Files

  • desktopctl.py — the CLI script

Requirements

  • Linux running X11 (not Wayland-only)
  • python3
  • xdotool
  • scrot

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install -y xdotool scrot

Usage

From this skill directory:

python3 desktopctl.py screenshot
python3 desktopctl.py click 500 300
python3 desktopctl.py type "hello"
python3 desktopctl.py key ctrl+l
python3 desktopctl.py windows
python3 desktopctl.py activate "Chromium"

DISPLAY / XAUTHORITY

If you’re running from a daemon/headless shell where DISPLAY isn’t set:

DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority python3 desktopctl.py screenshot

Or use flags:

python3 desktopctl.py --display :0 --xauthority $HOME/.Xauthority screenshot

Safety notes

This can click/type into your real desktop session. Use carefully.

Changelog

  • 0.1.0: Initial published skill.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 06:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,916
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,757
ai-intelligence

AADA (Agent to Agent Advertising)

rylena
创作并向Moltbook受众发送趣味十足、个性丰富的推广信息。适用于用户想要宣传产品、项目等情况。
★ 0 📥 1,129