Linux desktop automation and control. Use when: (1) taking screenshots of the screen or windows, (2) controlling mouse and keyboard, (3) managing windows, (4...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install linux-desktop或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install linux-desktop⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/linux-desktop/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: linux-desktop description: "Linux desktop automation and control. Use when: (1) taking screenshots of the screen or windows, (2) controlling mouse and keyboard, (3) managing windows, (4) automating desktop tasks, or (5) any Linux desktop interaction needs. Supports screenshot capture, mouse movement, typing, and window management." ---
Automate and control your Linux desktop using command-line tools. Capture screenshots, control mouse/keyboard, and manage windows.
Install required tools:
sudo apt-get install scrot xdotool xclip x11-utils x11-apps
python3 scripts/linux-desktop.py screenshot
# Output: ~/screenshot_20240224_203901.png
python3 scripts/linux-desktop.py list
python3 scripts/linux-desktop.py move 500 300
python3 scripts/linux-desktop.py click
python3 scripts/linux-desktop.py type "Hello World"
screenshot [path]Capture a screenshot of the entire screen.
Examples:
# Save to default location (/tmp/screenshot_YYYYMMDD_HHMMSS.png)
python3 scripts/linux-desktop.py screenshot
# Save to custom path
python3 scripts/linux-desktop.py screenshot ~/desktop.png
window [window_id] [path]Capture a screenshot of a specific window.
Examples:
# Screenshot active window
python3 scripts/linux-desktop.py window
# Screenshot specific window
python3 scripts/linux-desktop.py window 0x12345678 ~/window.png
activeGet information about the currently active window.
python3 scripts/linux-desktop.py active
# Output: 🖥️ Active Window
# ID: 0x12345678
# Title: Terminal
listList all visible windows.
python3 scripts/linux-desktop.py list
# Output: 🪟 Found 5 windows:
# 1. 0x12345678 - Terminal
# 2. 0x87654321 - Chrome
move Move mouse cursor to specified coordinates.
Examples:
python3 scripts/linux-desktop.py move 100 200
# Moves mouse to (100, 200)
python3 scripts/linux-desktop.py move 500 300
# Moves mouse to center of 1000x600 area
click [button]Click mouse button at current cursor position.
Button values:
1 - Left button (default)2 - Middle button3 - Right buttonExamples:
python3 scripts/linux-desktop.py click
# Left click
python3 scripts/linux-desktop.py click 3
# Right click
type Type text at current cursor position (must be in focused window).
Examples:
python3 scripts/linux-desktop.py type "Hello World"
python3 scripts/linux-desktop.py type "ls -la"
python3 scripts/linux-desktop.py type "sudo apt update"
key Press keyboard keys.
Common keys:
Return - Enter keyEscape - Escape keyTab - Tab keyBackSpace - BackspaceDelete - DeleteUp, Down, Left, Right - Arrow keysHome, End, Page_Up, Page_DownF1 through F12Ctrl+c, Ctrl+v, Ctrl+a, Ctrl+z - Key combinationsExamples:
python3 scripts/linux-desktop.py key Return
python3 scripts/linux-desktop.py key Escape
python3 scripts/linux-desktop.py key Ctrl+a
python3 scripts/linux-desktop.py key F5
screenGet screen information.
python3 scripts/linux-desktop.py screen
# Output: 🖥️ Screen Info
# Resolution: 1920x1080
# Move mouse, click, type, and press enter
python3 scripts/linux-desktop.py move 100 100
python3 scripts/linux-desktop.py click
python3 scripts/linux-desktop.py type "ls -la"
python3 scripts/linux-desktop.py key Return
# Open browser, navigate to Google, search
python3 scripts/linux-desktop.py move 100 50
python3 scripts/linux-desktop.py click
python3 scripts/linux-desktop.py type "https://www.google.com"
python3 scripts/linux-desktop.py key Return
sleep 2
python3 scripts/linux-desktop.py type "how to make money online"
python3 scripts/linux-desktop.py key Return
# Take screenshot before and after action
python3 scripts/linux-desktop.py screenshot /tmp/before.png
python3 scripts/linux-desktop.py key F5 # Refresh
sleep 1
python3 scripts/linux-desktop.py screenshot /tmp/after.png
sleep commands between actions for reliability"Command not found" errors:
sudo apt-get install scrot xdotool xclip x11-utils x11-apps
Permission denied:
Mouse doesn't move:
安装 Linux Desktop Control 后,可以对 AI 说这些话来触发它
Help me get started with Linux Desktop Control
Explains what Linux Desktop Control does, walks through the setup, and runs a quick demo based on your current project
Use Linux Desktop Control to linux desktop automation and control
Invokes Linux Desktop Control with the right parameters and returns the result directly in the conversation
What can I do with Linux Desktop Control in my design & creative workflow?
Lists the top use cases for Linux Desktop Control, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/linux-desktop/ 目录(个人级,所有项目可用),或 .claude/skills/linux-desktop/(项目级)。重启 AI 客户端后,用 /linux-desktop 主动调用,或让 AI 根据上下文自动发现并使用。
Linux Desktop Control 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Linux Desktop Control 可免费安装使用。请查阅仓库了解许可证信息。
Linux desktop automation and control. Use when: (1) taking screenshots of the screen or windows, (2) controlling mouse and keyboard, (3) managing windows, (4...
Linux Desktop Control 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Linux Desktop Control
Identifies repetitive steps in your workflow and sets up Linux Desktop Control to handle them automatically