mirror of
https://github.com/harivansh-afk/deskctl.git
synced 2026-04-17 21:03:03 +00:00
site init (barrett)
This commit is contained in:
parent
f05f441dee
commit
d5db569030
15 changed files with 5862 additions and 0 deletions
53
site/src/pages/usage.mdx
Normal file
53
site/src/pages/usage.mdx
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
layout: ../layouts/DocLayout.astro
|
||||
title: Usage
|
||||
toc: true
|
||||
---
|
||||
|
||||
# Usage
|
||||
|
||||
## Snapshot
|
||||
|
||||
Capture the current desktop state:
|
||||
|
||||
```sh
|
||||
deskctl snapshot
|
||||
```
|
||||
|
||||
With annotations overlaid on windows:
|
||||
|
||||
```sh
|
||||
deskctl --json snapshot --annotate
|
||||
```
|
||||
|
||||
## Click
|
||||
|
||||
Click a window by its annotation handle:
|
||||
|
||||
```sh
|
||||
deskctl click @w1
|
||||
```
|
||||
|
||||
## Type
|
||||
|
||||
Type text into the focused window:
|
||||
|
||||
```sh
|
||||
deskctl type "hello world"
|
||||
```
|
||||
|
||||
## Focus
|
||||
|
||||
Focus a window by name:
|
||||
|
||||
```sh
|
||||
deskctl focus "firefox"
|
||||
```
|
||||
|
||||
## JSON output
|
||||
|
||||
Pass `--json` for machine-readable output, useful for agent integrations:
|
||||
|
||||
```sh
|
||||
deskctl --json snapshot
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue