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

fix(ui): move shortcut reminder toggle from shortcuts to display settings

Louis Beaumontd05e32e9edb4
diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
index 9d87d24aa..742565c28 100644
--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
@@ -15,6 +15,7 @@ import { useToast } from "@/components/ui/use-toast";
import { Button } from "@/components/ui/button";
import { Settings } from "@/lib/hooks/use-settings";
import { open } from "@tauri-apps/plugin-shell";
+import { invoke } from "@tauri-apps/api/core";
export function DisplaySection() {
const { settings, updateSettings } = useSettings();
@@ -217,6 +218,34 @@ export function DisplaySection() {
</Card>
)}
+ <Card className="border-border bg-card">
+ <CardContent className="px-3 py-2.5">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center space-x-2.5">
+ <Monitor className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground">Show shortcut reminder</h3>
+ <p className="text-xs text-muted-foreground">Overlay showing the screenpipe shortcut</p>
+ </div>
+ </div>
+ <Switch
+ id="shortcut-overlay"
+ checked={settings?.showShortcutOverlay ?? false}
+ onCheckedChange={async (checked) => {
+ handleSettingsChange({ showShortcutOverlay: checked });
+ try {
+ if (checked) {
+ await invoke("show_shortcut_reminder", { shortcut: settings.showScreenpipeShortcut });
+ } else {
+ await invoke("hide_shortcut_reminder");
+ }
+ } catch (e) {}
+ }}
+ />
+ </div>
+ </CardContent>
+ </Card>
+
</div>
</div>
);
diff --git a/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx b/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx
index b9a4b77cc..86929a883 100644
--- a/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/shortcut-section.tsx
@@ -4,9 +4,6 @@
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, updateSettings } = useSettings();
@@ -29,28 +26,6 @@ const ShortcutSection = () => {
{/* TODO: vault lock shortcut disabled — CLI-only for now */}
{/* <ShortcutRow type="global" shortcut="lockVaultShortcut" title="lock vault" description="encrypt all data at rest" value={settings.lockVaultShortcut} /> */}
- <div className="flex items-center justify-between px-3 py-2.5 bg-card rounded-lg border border-border">
- <div className="flex items-center space-x-2.5">
- <div>
- <h3 className="text-sm font-medium text-foreground">Show shortcut reminder</h3>
- <p className="text-xs text-muted-foreground">Overlay showing the screenpipe shortcut</p>
- </div>
- </div>
- <Switch
- id="shortcut-overlay"
- checked={settings.showShortcutOverlay}
- onCheckedChange={async (checked) => {
- updateSettings({ showShortcutOverlay: checked });
- try {
- if (checked) {
- await invoke("show_shortcut_reminder", { shortcut: settings.showScreenpipeShortcut });
- } else {
- await invoke("hide_shortcut_reminder");
- }
- } catch (e) {}
- }}
- />
- </div>
</div>
</div>
);