If this is useful, a β€οΈ helps others find it.
All tests run on an 8-year-old MacBook Air.
HiyokoHelper is a 360Γ440px floating window. Always accessible, never in the way. Cmd+Shift+H brings it to the front from any app.
{
"app": {
"windows": [{
"label": "main",
"width": 360,
"height": 440,
"resizable": false,
"decorations": false,
"alwaysOnTop": true,
"transparent": true,
"visible": false
}],
"macOS": {
"activationPolicy": "accessory"
}
}
}
decorations: false
β custom title baralwaysOnTop: true
β floats above everythingactivationPolicy: accessory
β no Dock, no Cmd+Tabvisible: false
β hidden on launch
let shortcut: Shortcut = "CmdOrCtrl+Shift+H".parse()?;
app.global_shortcut().on_shortcut(shortcut, |app, _, _| {
if let Some(window) = app.get_webview_window("main") {
if window.is_visible().unwrap_or(false) {
window.hide().unwrap();
} else {
window.show().unwrap();
window.set_focus().unwrap();
}
}
})?;
Works from any app β VS Code, Terminal, Finder, anywhere.
.title-bar { -webkit-app-region: drag; }
.title-bar button { -webkit-app-region: no-drag; }
The title bar area drags. Buttons inside are clickable.
#[tauri::command]
pub fn hide_window(window: tauri::Window) {
window.hide().unwrap();
// Process stays alive
// Clipboard monitor keeps running
// Shortcut still works
}
tauri::Builder::default()
.plugin(tauri_plugin_autostart::init(
MacosLauncher::LaunchAgent,
Some(vec!["--minimized"]),
))
Starts hidden at login. Ready for Cmd+Shift+H without ever appearing on screen.
TL;DR: Floating assistant window in Tauri: decorations: false
-
alwaysOnTop: true -
activationPolicy: accessory
(no Dock/Cmd+Tab). Global shortcut toggles visibility from any app. -webkit-app-region: drag
for dragging without a native title bar. Close hides the window, not the process.
HiyokoHelper (OSS) | X β @hiyoyok