Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/desktop/src-tauri/src/deeplink_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pub enum DeepLinkAction {
mode: RecordingMode,
},
StopRecording,
PauseRecording,
ResumeRecording,
OpenEditor {
project_path: PathBuf,
},
Expand Down
43 changes: 43 additions & 0 deletions apps/raycast-extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "cap",
"title": "Cap",
"description": "Control Cap screen recorder from Raycast",
"icon": "command-icon.png",
"author": "sixty-dollar-agent",
"categories": ["Productivity"],
"license": "MIT",
"commands": [
{
"name": "start-recording",
"title": "Start Recording",
"description": "Start a new Cap screen recording",
"mode": "no-view"
},
{
"name": "stop-recording",
"title": "Stop Recording",
"description": "Stop the current Cap recording",
"mode": "no-view"
},
{
"name": "pause-recording",
"title": "Pause Recording",
"description": "Pause the current Cap recording",
"mode": "no-view"
},
{
"name": "resume-recording",
"title": "Resume Recording",
"description": "Resume a paused Cap recording",
"mode": "no-view"
}
],
"dependencies": {
"@raycast/api": "^1.64.0"
},
"devDependencies": {
"@raycast/eslint-config": "^1.0.8",
"typescript": "^5.3.3"
}
}
6 changes: 6 additions & 0 deletions apps/raycast-extension/src/pause-recording.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { showHUD, open } from "@raycast/api";

export default async function Command() {
await open("cap-desktop://action?value=%22pause_recording%22");
await showHUD("Cap: Recording paused");
}
6 changes: 6 additions & 0 deletions apps/raycast-extension/src/resume-recording.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { showHUD, open } from "@raycast/api";

export default async function Command() {
await open("cap-desktop://action?value=%22resume_recording%22");
await showHUD("Cap: Recording resumed");
}
6 changes: 6 additions & 0 deletions apps/raycast-extension/src/start-recording.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { showHUD, open } from "@raycast/api";

export default async function Command() {
await open("cap-desktop://action?value=%7B%22start_recording%22%3A%7B%22capture_mode%22%3A%7B%22screen%22%3A%22default%22%7D%2C%22camera%22%3Anull%2C%22mic_label%22%3Anull%2C%22capture_system_audio%22%3Afalse%2C%22mode%22%3A%22instant%22%7D%7D");
await showHUD("Cap: Recording started");
}
6 changes: 6 additions & 0 deletions apps/raycast-extension/src/stop-recording.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { showHUD, open } from "@raycast/api";

export default async function Command() {
await open("cap-desktop://action?value=%22stop_recording%22");
await showHUD("Cap: Recording stopped");
}
14 changes: 14 additions & 0 deletions apps/raycast-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"jsx": "react-jsx"
},
"include": ["src/**/*"]
}