[PR #5] [MERGED] Add Linux 'press' helper and UI for system hotkey command (Wayland-friendly) #5

Closed
opened 2026-08-08 18:06:17 +00:00 by jahruz67 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jahruz67/wisp-open/pull/5
Author: @jahruz67
Created: 5/20/2026
Status: Merged
Merged: 5/20/2026
Merged by: @jahruz67

Base: mainHead: codex/refactor-linux-global-hotkey-system-ta30lb


📝 Commits (2)

  • c4739dc Remove stale shortcut recorder code from built frontend asset
  • 02d26ce Merge branch 'main' into codex/refactor-linux-global-hotkey-system-ta30lb

📄 Description

Motivation

  • Provide a fallback mechanism for Linux Wayland environments where global hotkeys may not register by offering a small local HTTP helper command that can be called by desktop shortcut entries.
  • Surface the helper command in the settings UI so users can copy and create a system shortcut in GNOME/KDE without relying on modifier-only hotkeys.

Description

  • Added a Linux-only daemon in linux_press_daemon.go that listens on 127.0.0.1:9876 and exposes a /press endpoint which debounces paired StartRecording/StopRecording calls; added a non-Linux stub linux_press_daemon_stub.go and wired startup with startLinuxPressDaemon.
  • Exposed linux_press_command and linux_press_mode via GetSettings and disabled direct shortcut editing on Linux in SaveSettings while preserving hotkey behavior on other platforms.
  • Updated frontend files (frontend/src/main.js, frontend/index.html, frontend/dist/*) to show a new Linux section with a read-only linuxPressCommand input and a Copy action implemented as copyLinuxPressCommand to copy the command to clipboard.
  • Minor code cleanup and UI text tweaks (clipboard restore comment formatting and import ordering) included in the diff.

Testing

  • Built the Go app with go build ./... on Linux and non-Linux targets, and the builds completed successfully.
  • Built the frontend assets with the project's frontend build (production bundle) and verified the generated files updated without build errors.

Codex Task


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jahruz67/wisp-open/pull/5 **Author:** [@jahruz67](https://github.com/jahruz67) **Created:** 5/20/2026 **Status:** ✅ Merged **Merged:** 5/20/2026 **Merged by:** [@jahruz67](https://github.com/jahruz67) **Base:** `main` ← **Head:** `codex/refactor-linux-global-hotkey-system-ta30lb` --- ### 📝 Commits (2) - [`c4739dc`](https://github.com/jahruz67/wisp-open/commit/c4739dc38c1196663daf3183bb3d69808473c22b) Remove stale shortcut recorder code from built frontend asset - [`02d26ce`](https://github.com/jahruz67/wisp-open/commit/02d26ce79b89388e0f7b28c03e261845cab0dde3) Merge branch 'main' into codex/refactor-linux-global-hotkey-system-ta30lb ### 📄 Description ### Motivation - Provide a fallback mechanism for Linux Wayland environments where global hotkeys may not register by offering a small local HTTP helper command that can be called by desktop shortcut entries. - Surface the helper command in the settings UI so users can copy and create a system shortcut in GNOME/KDE without relying on modifier-only hotkeys. ### Description - Added a Linux-only daemon in `linux_press_daemon.go` that listens on `127.0.0.1:9876` and exposes a `/press` endpoint which debounces paired `StartRecording`/`StopRecording` calls; added a non-Linux stub `linux_press_daemon_stub.go` and wired startup with `startLinuxPressDaemon`. - Exposed `linux_press_command` and `linux_press_mode` via `GetSettings` and disabled direct `shortcut` editing on Linux in `SaveSettings` while preserving hotkey behavior on other platforms. - Updated frontend files (`frontend/src/main.js`, `frontend/index.html`, `frontend/dist/*`) to show a new Linux section with a read-only `linuxPressCommand` input and a `Copy` action implemented as `copyLinuxPressCommand` to copy the command to clipboard. - Minor code cleanup and UI text tweaks (clipboard restore comment formatting and import ordering) included in the diff. ### Testing - Built the Go app with `go build ./...` on Linux and non-Linux targets, and the builds completed successfully. - Built the frontend assets with the project's frontend build (production bundle) and verified the generated files updated without build errors. ------ [Codex Task](https://chatgpt.com/codex/cloud/tasks/task_e_6a0d187501cc832eaed17be2346822d2) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
jahruz67 added the pull-request label 2026-08-08 18:06:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jahruz67/wisp-open#5