Skip to content

Getting Started

Development Status

SilentCast is currently under active development. Features may change and bugs may exist. Please use at your own risk and report any issues on GitHub.

This guide will help you set up SilentCast and start using keyboard shortcuts in less than 5 minutes.

Prerequisites

Before we begin, make sure you have:

  • A supported operating system (Windows 10+ or macOS 10.15+)
  • Admin/sudo access for installation
  • 5 minutes of your time

Quick Install

bash
# Quick install script
curl -sSL https://get.silentcast.dev | bash

# Or with Homebrew (macOS)
brew install silentcast

# Or download directly
curl -L https://github.com/SphereStacking/silentcast/releases/latest/download/silentcast-$(uname -s)-$(uname -m).tar.gz | tar xz
sudo mv silentcast /usr/local/bin/
powershell
# Quick install script (PowerShell as Admin)
iwr -useb https://get.silentcast.dev/install.ps1 | iex

# Or with Scoop
scoop install silentcast

# Or with Chocolatey
choco install silentcast

# Or download the .exe from releases
# https://github.com/SphereStacking/silentcast/releases
bash
# Clone and build
git clone https://github.com/SphereStacking/silentcast.git
cd silentcast
make build
sudo make install

First Run

1. Start SilentCast

bash
# Start with system tray icon
silentcast

# Or start without tray (terminal mode)
silentcast --no-tray

macOS Users: On first run, you'll need to grant Accessibility permissions:

  1. Go to System Preferences → Security & Privacy → Privacy → Accessibility
  2. Click the lock and add SilentCast
  3. Restart SilentCast

2. Verify Installation

Press Alt+Space (default prefix), then h to see the built-in help. You should see a notification or terminal output showing available shortcuts.

Your First Spell

Let's create a simple configuration to open your favorite editor:

1. Create Configuration File

Create your configuration file in the default location:

  • macOS/Linux: ~/.config/silentcast/spellbook.yml
  • Windows: %APPDATA%\silentcast\spellbook.yml
bash
# Create directory
mkdir -p ~/.config/silentcast

# Create configuration file
nano ~/.config/silentcast/spellbook.yml
powershell
# Create directory
mkdir $env:APPDATA\silentcast

# Create configuration file
notepad $env:APPDATA\silentcast\spellbook.yml

Add this configuration:

yaml
# My first spellbook
daemon:
  auto_start: false
  log_level: info

hotkeys:
  prefix: "alt+space"    # Your activation key
  timeout: 1000          # Milliseconds to wait

spells:
  e: "open_editor"       # Alt+Space, then E
  t: "open_terminal"     # Alt+Space, then T
  b: "open_browser"      # Alt+Space, then B

grimoire:
  open_editor:
    type: app
    command: "code"      # Change to your editor
    description: "Open VS Code"
  
  open_terminal:
    type: app
    command: "wt"        # Windows Terminal
    # command: "terminal" # macOS
    description: "Open Terminal"
  
  open_browser:
    type: app
    command: "chrome"
    description: "Open Chrome"

2. Test Your Spells

  1. Save the configuration file
  2. SilentCast will auto-reload (or restart it)
  3. Press Alt+Space, then e - Your editor should open!
  4. Press Alt+Space, then t - Your terminal appears!

Level Up: Multi-Key Sequences

Add these VS Code-style sequences to your spellbook:

yaml
spells:
  # Git shortcuts
  "g,s": "git_status"
  "g,p": "git_pull"
  "g,c": "git_commit"
  
  # Docker shortcuts
  "d,u": "docker_up"
  "d,d": "docker_down"
  "d,l": "docker_logs"

grimoire:
  git_status:
    type: script
    command: "git status"
    working_dir: "${PWD}"  # Use current directory
    
  docker_up:
    type: script
    command: "docker-compose up -d"
    
  docker_logs:
    type: script
    command: "docker-compose logs -f"

Now try Alt+Space, g, s to check git status!

Platform-Specific Configuration

Create platform-specific overrides:

yaml
# macOS specific overrides
grimoire:
  open_terminal:
    command: "Terminal"
  
  open_browser:
    command: "Safari"
  
  # macOS specific shortcut
  show_desktop:
    type: script
    command: "osascript -e 'tell application \"System Events\" to key code 103 using {command down, shift down}'"
yaml
# Windows specific overrides
grimoire:
  open_terminal:
    command: "wt"  # Windows Terminal
  
  open_browser:
    command: "msedge"
  
  # Windows specific
  task_manager:
    type: app
    command: "taskmgr"
command: "gnome-terminal"
# command: "konsole"  # KDE
# command: "xfce4-terminal"  # XFCE

open_browser: command: "firefox"

Essential Tips

🎯 Choosing Good Shortcuts

  • Single letters for most-used apps: e (editor), t (terminal)
  • Grouped sequences for related tasks: g,* for git, d,* for docker
  • Memorable combinations: d,b for "docker build"
  • Avoid conflicts: Check your IDE shortcuts first

⚡ Performance Tips

  1. Start with system: Enable auto-start for instant availability
  2. Minimal spells: Only add shortcuts you'll actually use
  3. Fast sequences: Set lower timeouts for faster response

🔍 Debugging

If shortcuts aren't working:

bash
# Run in debug mode
silentcast --log-level debug

# Check logs
tail -f ~/.local/share/silentcast/silentcast.log

# Verify configuration
silentcast --validate-config

What's Next?

Congratulations! You're now a SilentCast wizard! 🧙‍♂️ Here's where to go next:

📦 Installation Guide

Platform-specific installation details and troubleshooting

⚙️ Configuration Guide

Deep dive into all configuration options

🎮 Shortcuts Guide

Advanced shortcut patterns and best practices

🤖 Automation Guide

Script execution, environment variables, and more

Join the Community

Having issues or want to share your spellbook?

Released under the MIT License.