Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat: move Wayland paste setup to Preferences tab

Alcahest8c15360c24db
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index 4b152e03a..67c814395 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -1910,51 +1910,6 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
</SettingsPanelRow>
</SettingsPanel>
</div>
- </div>
- );
-
- case "hotkeys":
- return (
- <div className="space-y-6">
- {/* Dictation Hotkey */}
- <div>
- <SectionHeader
- title={t("settingsPage.general.hotkey.title")}
- description={t("settingsPage.general.hotkey.description")}
- />
- <SettingsPanel>
- <SettingsPanelRow>
- <HotkeyInput
- value={dictationKey}
- onChange={async (newHotkey) => {
- await registerHotkey(newHotkey);
- }}
- disabled={isHotkeyRegistering}
- validate={validateHotkeyForInput}
- />
- {dictationKey && dictationKey !== getDefaultHotkey() && (
- <button
- onClick={() => registerHotkey(getDefaultHotkey())}
- disabled={isHotkeyRegistering}
- className="mt-2 text-xs text-muted-foreground/70 hover:text-foreground transition-colors disabled:opacity-50"
- >
- {t("settingsPage.general.hotkey.resetToDefault", {
- hotkey: formatHotkeyLabel(getDefaultHotkey()),
- })}
- </button>
- )}
- </SettingsPanelRow>
-
- {!isUsingGnomeHotkeys && (
- <SettingsPanelRow>
- <p className="text-xs font-medium text-muted-foreground/80 mb-2">
- {t("settingsPage.general.hotkey.activationMode")}
- </p>
- <ActivationModeSelector value={activationMode} onChange={setActivationMode} />
- </SettingsPanelRow>
- )}
- </SettingsPanel>
- </div>
{/* Wayland Paste Diagnostics — only on Linux + Wayland */}
{ydotoolStatus?.isLinux && ydotoolStatus?.isWayland && (
@@ -2318,6 +2273,52 @@ EOF`,
})()}
</div>
)}
+
+ </div>
+ );
+
+ case "hotkeys":
+ return (
+ <div className="space-y-6">
+ {/* Dictation Hotkey */}
+ <div>
+ <SectionHeader
+ title={t("settingsPage.general.hotkey.title")}
+ description={t("settingsPage.general.hotkey.description")}
+ />
+ <SettingsPanel>
+ <SettingsPanelRow>
+ <HotkeyInput
+ value={dictationKey}
+ onChange={async (newHotkey) => {
+ await registerHotkey(newHotkey);
+ }}
+ disabled={isHotkeyRegistering}
+ validate={validateHotkeyForInput}
+ />
+ {dictationKey && dictationKey !== getDefaultHotkey() && (
+ <button
+ onClick={() => registerHotkey(getDefaultHotkey())}
+ disabled={isHotkeyRegistering}
+ className="mt-2 text-xs text-muted-foreground/70 hover:text-foreground transition-colors disabled:opacity-50"
+ >
+ {t("settingsPage.general.hotkey.resetToDefault", {
+ hotkey: formatHotkeyLabel(getDefaultHotkey()),
+ })}
+ </button>
+ )}
+ </SettingsPanelRow>
+
+ {!isUsingGnomeHotkeys && (
+ <SettingsPanelRow>
+ <p className="text-xs font-medium text-muted-foreground/80 mb-2">
+ {t("settingsPage.general.hotkey.activationMode")}
+ </p>
+ <ActivationModeSelector value={activationMode} onChange={setActivationMode} />
+ </SettingsPanelRow>
+ )}
+ </SettingsPanel>
+ </div>
</div>
);