Quick Start¶
Get up and running with Straw in 5 minutes.
1. Install Straw¶
Install both the daemon (strawd) and TUI client (straw):
# Linux/macOS
curl -fsSL https://raw.githubusercontent.com/raythurman2386/straw/main/install.sh | sh
# Windows PowerShell
irm https://raw.githubusercontent.com/raythurman2386/straw/main/install.ps1 | iex
2. Start the Daemon¶
The daemon watches your filesystem and executes rules:
3. Configure Your First Rule¶
Create a basic configuration file:
# Create the config directory
mkdir -p ~/.config/straw
# Create the config file
cat > ~/.config/straw/config.toml << 'EOF'
# Watch your Downloads folder
[[watch]]
path = "~/Downloads"
recursive = true
# Rule: Organize PDFs
[[rules]]
name = "Organize PDFs"
enabled = true
[rules.match]
extension = ".pdf"
[[rules.actions]]
type = "move"
target = "~/Documents/PDFs"
EOF
4. Launch the TUI¶
Open a new terminal and launch the TUI:
You should see: - Live event feed showing filesystem changes - Status of watched directories - Active rules and their match counts
5. Test Your Rule¶
- Download a PDF file to your Downloads folder
- Watch the TUI - you should see the rule match and execute
- Check
~/Documents/PDFs- your PDF should be there!
What's Next?¶
- Learn more about Configuration
- Explore Rules in detail
- See more Action Types
- Check out Example Configurations