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: keyboard shortcuts on windows (#1757)

Divanshu Grover4327f6b6caaf
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 835a8eb89..2b165a7a4 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -191,7 +191,7 @@ const DEFAULT_SETTINGS: Settings = {
disabledShortcuts: [],
user: {},
showScreenpipeShortcut: "Super+Alt+S",
- startRecordingShortcut: "Super+Alt+R",
+ startRecordingShortcut: "Super+Alt+U", // Super+Alt+R is used on windows by Xbox Game Bar
stopRecordingShortcut: "Super+Alt+X",
startAudioShortcut: "",
stopAudioShortcut: "",
diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rs
index 988f37697..72b30d5e1 100755
--- a/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -134,15 +134,15 @@ impl ShortcutConfig {
show: store
.get("showScreenpipeShortcut")
.and_then(|v| v.as_str().map(String::from))
- .unwrap_or_else(|| "Alt+Space".to_string()),
+ .unwrap_or_else(|| "Super+Alt+S".to_string()),
start: store
.get("startRecordingShortcut")
.and_then(|v| v.as_str().map(String::from))
- .unwrap_or_else(|| "Alt+Shift+R".to_string()),
+ .unwrap_or_else(|| "Super+Alt+U".to_string()),
stop: store
.get("stopRecordingShortcut")
.and_then(|v| v.as_str().map(String::from))
- .unwrap_or_else(|| "Alt+Shift+S".to_string()),
+ .unwrap_or_else(|| "Super+Alt+X".to_string()),
start_audio: store
.get("startAudioShortcut")
.and_then(|v| v.as_str().map(String::from))
diff --git a/screenpipe-app-tauri/src-tauri/src/tray.rs b/screenpipe-app-tauri/src-tauri/src/tray.rs
index d1855944c..df89d50d6 100644
--- a/screenpipe-app-tauri/src-tauri/src/tray.rs
+++ b/screenpipe-app-tauri/src-tauri/src/tray.rs
@@ -52,7 +52,7 @@ fn create_dynamic_menu(
let show_shortcut = store
.get("showScreenpipeShortcut")
.and_then(|v| v.as_str().map(String::from))
- .unwrap_or_else(|| "Alt+Space".to_string());
+ .unwrap_or_else(|| "Super+Alt+S".to_string());
// Show item with formatted shortcut in label
menu_builder = menu_builder.item(