Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

feat(settings): add option to hide shortcut reminder overlay

Louis Beaumont5571cf0371b1
diff --git a/screenpipe-app-tauri/components/settings/shortcut-section.tsx b/screenpipe-app-tauri/components/settings/shortcut-section.tsx
index b0ded5fc8..e6c307873 100644
--- a/screenpipe-app-tauri/components/settings/shortcut-section.tsx
+++ b/screenpipe-app-tauri/components/settings/shortcut-section.tsx
@@ -1,9 +1,12 @@
import React from "react";
import { useSettings } from "@/lib/hooks/use-settings";
import ShortcutRow from "./shortcut-row";
+import { Label } from "@/components/ui/label";
+import { Switch } from "@/components/ui/switch";
+import { invoke } from "@tauri-apps/api/core";
const ShortcutSection = () => {
- const { settings } = useSettings();
+ const { settings, updateSettings } = useSettings();
return (
@@ -58,7 +61,34 @@ const ShortcutSection = () => {
value={settings.stopAudioShortcut}
/>
-
+ <div className="flex items-center justify-between py-4 border-t">
+ <div className="space-y-1">
+ <Label htmlFor="shortcut-overlay" className="text-base font-medium">
+ show shortcut reminder
+ </Label>
+ <p className="text-sm text-muted-foreground">
+ display a small overlay showing the screenpipe shortcut on screen
+ </p>
+ </div>
+ <Switch
+ id="shortcut-overlay"
+ checked={settings.showShortcutOverlay}
+ onCheckedChange={async (checked) => {
+ updateSettings({ showShortcutOverlay: checked });
+ try {
+ if (checked) {
+ // Show the overlay when enabled
+ await invoke("show_shortcut_reminder", { shortcut: settings.showScreenpipeShortcut });
+ } else {
+ // Hide the overlay when disabled
+ await invoke("hide_shortcut_reminder");
+ }
+ } catch (e) {
+ // Window may not exist
+ }
+ }}
+ />
+ </div>
</div>
</div>
);
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index e5b69eeba..cf8086870 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -129,7 +129,6 @@ let DEFAULT_SETTINGS: Settings = {
isFirstTimeUser: true,
autoStartEnabled: true,
enableFrameCache: true,
- enableUiMonitoring: false,
platform: "unknown",
disabledShortcuts: [],
user: {
@@ -159,6 +158,7 @@ let DEFAULT_SETTINGS: Settings = {
disableVision: false,
useAllMonitors: false,
enableRealtimeVision: true,
+ showShortcutOverlay: true,
};
export function createDefaultSettingsObject(): Settings {
diff --git a/screenpipe-app-tauri/lib/utils/tauri.ts b/screenpipe-app-tauri/lib/utils/tauri.ts
index 23c2e733e..9220a5a3c 100644
--- a/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -197,11 +197,11 @@ export type OSPermission = "screenRecording" | "microphone"
export type OSPermissionStatus = "notNeeded" | "empty" | "granted" | "denied"
export type OSPermissionsCheck = { screenRecording: OSPermissionStatus; microphone: OSPermissionStatus }
export type OnboardingStore = { isCompleted: boolean; completedAt: string | null }
-export type SettingsStore = { aiPresets: AIPreset[]; deepgramApiKey: string; isLoading: boolean; userId: string;
+export type SettingsStore = { aiPresets: AIPreset[]; deepgramApiKey: string; isLoading: boolean; userId: string;
/**
* Persistent analytics ID used for PostHog tracking (both frontend and backend)
*/
-analyticsId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngine: string; monitorIds: string[]; audioDevices: string[]; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; enableUiMonitoring: boolean; platform: string; disabledShortcuts: string[]; user: User; showScreenpipeShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean; useAllMonitors: boolean; enableRealtimeVision: boolean }
+analyticsId: string; devMode: boolean; audioTranscriptionEngine: string; ocrEngine: string; monitorIds: string[]; audioDevices: string[]; usePiiRemoval: boolean; restartInterval: number; port: number; dataDir: string; disableAudio: boolean; ignoredWindows: string[]; includedWindows: string[]; fps: number; vadSensitivity: string; analyticsEnabled: boolean; audioChunkDuration: number; useChineseMirror: boolean; languages: string[]; embeddedLLM: EmbeddedLLM; enableBeta: boolean; isFirstTimeUser: boolean; autoStartEnabled: boolean; enableFrameCache: boolean; platform: string; disabledShortcuts: string[]; user: User; showScreenpipeShortcut: string; startRecordingShortcut: string; stopRecordingShortcut: string; startAudioShortcut: string; stopAudioShortcut: string; enableRealtimeAudioTranscription: boolean; realtimeAudioTranscriptionEngine: string; disableVision: boolean; useAllMonitors: boolean; enableRealtimeVision: boolean; showShortcutOverlay?: boolean }
export type ShowRewindWindow = "Main" | { Settings: { page: string | null } } | { Search: { query: string | null } } | "Onboarding"
export type User = { id: string | null; name: string | null; email: string | null; image: string | null; token: string | null; clerk_id: string | null; api_key: string | null; credits: Credits | null; stripe_connected: boolean | null; stripe_account_status: string | null; github_username: string | null; bio: string | null; website: string | null; contact: string | null; cloud_subscribed: boolean | null }
diff --git a/screenpipe-app-tauri/lib/utils/validation.ts b/screenpipe-app-tauri/lib/utils/validation.ts
index af17d3971..4c6715c6f 100644
--- a/screenpipe-app-tauri/lib/utils/validation.ts
+++ b/screenpipe-app-tauri/lib/utils/validation.ts
@@ -77,8 +77,7 @@ export const settingsStoreSchema = z.object({
enableRealtimeVision: z.boolean(),
fps: z.number().min(0.1, "FPS must be at least 0.1").max(60, "FPS cannot exceed 60"),
enableFrameCache: z.boolean(),
- enableUiMonitoring: z.boolean(),
-
+
// System Settings
dataDir: z.string().min(1, "Data directory is required"),
port: z.number().int().min(1024, "Port must be at least 1024").max(65535, "Port cannot exceed 65535"),
@@ -100,6 +99,7 @@ export const settingsStoreSchema = z.object({
startAudioShortcut: z.string(),
stopAudioShortcut: z.string(),
pipeShortcuts: z.record(z.string()),
+ showShortcutOverlay: z.boolean().optional(),
// Other
isLoading: z.boolean(),
diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rs
index e1489615e..ba1bcf812 100755
--- a/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -920,14 +920,16 @@ async fn main() {
let _ = ShowRewindWindow::Main.show(&app.handle());
}
- // Always show shortcut reminder overlay on app startup
- let shortcut = store.show_screenpipe_shortcut.clone();
- let app_handle_reminder = app.handle().clone();
- tauri::async_runtime::spawn(async move {
- // Small delay to ensure windows are ready
- tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
- let _ = commands::show_shortcut_reminder(app_handle_reminder, shortcut).await;
- });
+ // Show shortcut reminder overlay on app startup if enabled
+ if store.show_shortcut_overlay {
+ let shortcut = store.show_screenpipe_shortcut.clone();
+ let app_handle_reminder = app.handle().clone();
+ tauri::async_runtime::spawn(async move {
+ // Small delay to ensure windows are ready
+ tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
+ let _ = commands::show_shortcut_reminder(app_handle_reminder, shortcut).await;
+ });
+ }
// Get app handle once for all initializations
let app_handle = app.handle().clone();
diff --git a/screenpipe-app-tauri/src-tauri/src/store.rs b/screenpipe-app-tauri/src-tauri/src/store.rs
index eb6b36182..eb7765dd4 100644
--- a/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -153,8 +153,6 @@ pub struct SettingsStore {
pub auto_start_enabled: bool,
#[serde(rename = "enableFrameCache")]
pub enable_frame_cache: bool,
- #[serde(rename = "enableUiMonitoring")]
- pub enable_ui_monitoring: bool,
#[serde(rename = "platform")]
pub platform: String,
#[serde(rename = "disabledShortcuts")]
@@ -181,6 +179,12 @@ pub struct SettingsStore {
pub use_all_monitors: bool,
#[serde(rename = "enableRealtimeVision")]
pub enable_realtime_vision: bool,
+ #[serde(rename = "showShortcutOverlay", default = "default_true")]
+ pub show_shortcut_overlay: bool,
+}
+
+fn default_true() -> bool {
+ true
}
#[derive(Serialize, Deserialize, Type,Clone,Default)]
@@ -389,7 +393,6 @@ impl Default for SettingsStore {
is_first_time_user: true,
auto_start_enabled: true,
enable_frame_cache: true,
- enable_ui_monitoring: false,
platform: "unknown".to_string(),
disabled_shortcuts: vec![],
user: User {
@@ -419,6 +422,7 @@ impl Default for SettingsStore {
disable_vision: false,
use_all_monitors: false,
enable_realtime_vision: true,
+ show_shortcut_overlay: true,
}
}
}