✓ Verified
🌐 Web Scrapers
✓ Enhanced Data
Linux Desktop
Linux desktop automation and control.
- Rating
- 5 (287 reviews)
- Downloads
- 4,545 downloads
- Version
- 1.0.0
Overview
Linux desktop automation and control.
Complete Documentation
View Source →
Linux Desktop Control
Automate and control your Linux desktop using command-line tools. Capture screenshots, control mouse/keyboard, and manage windows.
When to Use
- Take screenshots of screen or specific windows
- Automate mouse movements and clicks
- Simulate keyboard input
- Manage and interact with windows
- Build desktop automation workflows
Prerequisites
Install required tools:
bash
sudo apt-get install scrot xdotool xclip x11-utils x11-apps
Quick Start
Take Screenshot
bash
python3 scripts/linux-desktop.py screenshot
# Output: ~/screenshot_20240224_203901.png
List Windows
bash
python3 scripts/linux-desktop.py list
Move Mouse and Click
bash
python3 scripts/linux-desktop.py move 500 300
python3 scripts/linux-desktop.py click
Type Text
bash
python3 scripts/linux-desktop.py type "Hello World"
Commands
screenshot [path]
Capture a screenshot of the entire screen.Examples:
bash
# 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:
bash
# Screenshot active window
python3 scripts/linux-desktop.py window
# Screenshot specific window
python3 scripts/linux-desktop.py window 0x12345678 ~/window.png
active
Get information about the currently active window.bash
python3 scripts/linux-desktop.py active
# Output: 🖥️ Active Window
# ID: 0x12345678
# Title: Terminal
list
List all visible windows.bash
python3 scripts/linux-desktop.py list
# Output: 🪟 Found 5 windows:
# 1. 0x12345678 - Terminal
# 2. 0x87654321 - Chrome
move
Move mouse cursor to specified coordinates.Examples:
bash
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 button
bash
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:
bash
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_DownF1throughF12Ctrl+c,Ctrl+v,Ctrl+a,Ctrl+z- Key combinations
bash
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
screen
Get screen information.bash
python3 scripts/linux-desktop.py screen
# Output: 🖥️ Screen Info
# Resolution: 1920x1080
Automation Examples
Basic Automation
bash
# 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
Web Search Automation
bash
# 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
Screenshot Workflow
bash
# 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
Tips
- Always check the active window before typing
- Use
sleepcommands between actions for reliability - Take screenshots to verify state changes
- Test commands one by one before building complex workflows
- Use window list to find specific window IDs for targeting
Troubleshooting
"Command not found" errors:
bash
sudo apt-get install scrot xdotool xclip x11-utils x11-apps
Permission denied:
- Ensure you're running in a graphical session (X11 or Wayland)
- Some actions require focus on the target window
- Check if another application is grabbing the mouse
- Try moving the mouse manually to see if it's responsive
Security Notes
- This skill can control your desktop - use with caution
- Don't automate sensitive actions without verification
- Always review automation scripts before running
Installation
Terminal bash
openclaw install linux-desktop
Copied!
💻Code Examples
sudo apt-get install scrot xdotool xclip x11-utils x11-apps
sudo-apt-get-install-scrot-xdotool-xclip-x11-utils-x11-apps.txt
## Quick Start
### Take Screenshotpython3 scripts/linux-desktop.py type "Hello World"
python3-scriptslinux-desktoppy-type-hello-world.txt
## Commands
### `screenshot [path]`
Capture a screenshot of the entire screen.
**Examples:**python3 scripts/linux-desktop.py screenshot ~/desktop.png
python3-scriptslinux-desktoppy-screenshot-desktoppng.txt
### `window [window_id] [path]`
Capture a screenshot of a specific window.
**Examples:**python3 scripts/linux-desktop.py window 0x12345678 ~/window.png
python3-scriptslinux-desktoppy-window-0x12345678-windowpng.txt
### `active`
Get information about the currently active window.# Title: Terminal
-title-terminal.txt
### `list`
List all visible windows.# 2. 0x87654321 - Chrome
-2-0x87654321---chrome.txt
### `move <x> <y>`
Move mouse cursor to specified coordinates.
**Examples:**# Moves mouse to center of 1000x600 area
-moves-mouse-to-center-of-1000x600-area.txt
### `click [button]`
Click mouse button at current cursor position.
**Button values:**
- `1` - Left button (default)
- `2` - Middle button
- `3` - Right button
**Examples:**# Right click
-right-click.txt
### `type <text>`
Type text at current cursor position (must be in focused window).
**Examples:**python3 scripts/linux-desktop.py type "sudo apt update"
python3-scriptslinux-desktoppy-type-sudo-apt-update.txt
### `key <keyspec>`
Press keyboard keys.
**Common keys:**
- `Return` - Enter key
- `Escape` - Escape key
- `Tab` - Tab key
- `BackSpace` - Backspace
- `Delete` - Delete
- `Up`, `Down`, `Left`, `Right` - Arrow keys
- `Home`, `End`, `Page_Up`, `Page_Down`
- `F1` through `F12`
- `Ctrl+c`, `Ctrl+v`, `Ctrl+a`, `Ctrl+z` - Key combinations
**Examples:**python3 scripts/linux-desktop.py key F5
python3-scriptslinux-desktoppy-key-f5.txt
### `screen`
Get screen information.Tags
#browser_and-automation
#automation
Quick Info
Category Web Scrapers
Model Claude 3.5
Complexity Multi-Agent
Author ouyangabel
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install linux-desktop
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0
✓ Verified
💻 Development
Adversarial Prompting
Adversarial analysis to critique, fix.
🧠 Claude-Ready
)}
★ 4.6 (372)
↓ 28,222
v1.0.0