Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
Show floating icon on the monitor where the cursor is
Gabriel Steine9c25a9b2788
diff --git a/src/helpers/windowManager.js b/src/helpers/windowManager.jsindex 1a9d9ab98..c936091c9 100644--- a/src/helpers/windowManager.js+++ b/src/helpers/windowManager.js@@ -42,7 +42,8 @@ class WindowManager {}async createMainWindow() {- const display = screen.getPrimaryDisplay();+ const cursorPos = screen.getCursorScreenPoint();+ const display = screen.getDisplayNearestPoint(cursorPos);const position = WindowPositionUtil.getMainWindowPosition(display,null,@@ -832,9 +833,37 @@ class WindowManager {this.agentWindow.setBounds(bounds);}+ _repositionToCursorDisplay() {+ if (!this.mainWindow || this.mainWindow.isDestroyed()) return;++ const cursorPos = screen.getCursorScreenPoint();+ const cursorDisplay = screen.getDisplayNearestPoint(cursorPos);++ const currentBounds = this.mainWindow.getBounds();+ const currentDisplay = screen.getDisplayNearestPoint({+ x: currentBounds.x + currentBounds.width / 2,+ y: currentBounds.y + currentBounds.height / 2,+ });++ if (currentDisplay.id === cursorDisplay.id) return;++ const newPos = WindowPositionUtil.getMainWindowPosition(+ cursorDisplay,+ { width: currentBounds.width, height: currentBounds.height },+ this._panelStartPosition+ );+ this.mainWindow.setBounds(newPos);+ }+showDictationPanel(options = {}) {const { focus = false } = options;if (this.mainWindow && !this.mainWindow.isDestroyed()) {+ const wasHidden = !this.mainWindow.isVisible() || this.mainWindow.isMinimized();++ if (wasHidden) {+ this._repositionToCursorDisplay();+ }+if (this.mainWindow.isMinimized()) {this.mainWindow.restore();}