Agent skill
tauri-app-system-tray
Create and manage system tray icons with menus and click handlers in Tauri v2, handling platform differences. Use when adding a tray icon, building tray menus, toggling window visibility from the tray, or handling macOS/Windows/Linux tray conventions.
Install this agent skill to your Project
npx add-skill https://github.com/partme-ai/full-stack-skills/tree/main/skills/tauri-skills/tauri-app-system-tray
SKILL.md
When to use this skill
ALWAYS use this skill when the user mentions:
- System tray icon or status bar icon
- Tray menu with actions (show, hide, quit)
- Platform-specific tray behavior differences
Trigger phrases include:
- "system tray", "tray icon", "tray menu", "status bar", "minimize to tray"
How to use this skill
- Configure a tray icon in your Tauri builder:
rust
use tauri::{tray::TrayIconBuilder, menu::{Menu, MenuItem}}; tauri::Builder::default() .setup(|app| { let show = MenuItem::with_id(app, "show", "Show", true, None::<&str>)?; let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?; let menu = Menu::with_items(app, &[&show, &quit])?; TrayIconBuilder::new() .icon(app.default_window_icon().unwrap().clone()) .menu(&menu) .on_menu_event(|app, event| match event.id.as_ref() { "show" => { app.get_webview_window("main").unwrap().show().unwrap(); } "quit" => { app.exit(0); } _ => {} }) .build(app)?; Ok(()) }) - Configure capabilities in
src-tauri/capabilities/default.json:json{ "permissions": ["core:default", "tray:default"] } - Handle tray icon clicks to toggle window visibility (show/hide on click)
- Handle platform differences: macOS uses left-click for menu, Windows uses right-click; tray positioning varies
- Combine with positioner plugin for accurate tray-relative window placement
Outputs
- System tray setup with icon and menu
- Menu event handling with show/hide/quit actions
- Platform-specific behavior guidance
References
Keywords
tauri system tray, tray icon, tray menu, status bar, minimize to tray
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ocrmypdf-batch
OCRmyPDF batch processing skill — process multiple PDFs, Docker automation, shell scripting, and CI/CD integration. Use when the user needs to OCR many PDFs, set up automated OCR pipelines, or integrate OCR into workflows.
ocrmypdf-optimize
OCRmyPDF optimization skill — compress PDFs, configure PDF/A output, JBIG2 encoding, and lossless optimization. Use when the user needs to reduce PDF file size, create archival PDF/A files, or optimize OCR output.
ocrmypdf-image
OCRmyPDF image processing skill — deskew, rotate, clean, despeckle, remove border from scanned documents. Use when the user needs to improve scanned PDF quality, fix skewed pages, remove noise, or clean up scanned documents before OCR.
ocrmypdf-api
OCRmyPDF Python API and plugin skill — use OCRmyPDF programmatically from Python, integrate with applications, and extend with plugins (EasyOCR, PaddleOCR, AppleOCR). Use when the user needs to call OCRmyPDF from Python code, build OCR pipelines, or use alternative OCR engines.
ocrmypdf
OCRmyPDF core skill — add searchable OCR text layer to scanned PDFs, convert images to searchable PDFs, support 100+ languages via Tesseract. Use when the user needs to OCR a PDF, make a scanned PDF searchable, or extract text from scanned documents.
svelte
Guides Svelte and SvelteKit development including reactive components, stores, transitions, lifecycle hooks, SSR, file-based routing, and deployment. Use when the user needs to build Svelte components, create SvelteKit applications, implement reactivity patterns, or configure Svelte with Vite.
Didn't find tool you were looking for?