tsc-platform: global push-to-talk hotkeys, notifications, app directories
- hotkey: HotkeyManager picks a backend and register() returns a stream of
Pressed/Released events:
- xdg-desktop-portal GlobalShortcuts through ashpd (Wayland; Activated /
Deactivated; the portal owns the binding, ours is the preferred trigger)
- X11 XInput2 raw key/button events on the root window (no grab, the key
still reaches the focused app); tested under Xvfb with XTEST input
- Windows low-level keyboard and mouse hooks on a dedicated thread (the
crate's only unsafe code, in one module)
Hotkey/Key/Modifiers parse and serialize as "Ctrl+Shift+T", "F13",
"RightCtrl", "MouseBack", with X11 keysym, Windows VK and xdg names.
- notify: desktop notifications through notify-rust (D-Bus / toasts)
- paths: data/config/cache/state dirs under "tsc" (as the desktop app
already uses), TSC_*_DIR overrides, Flatpak and display server detection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
e838bd102f
commit
41cac36959
13 files changed
+1946
-43
No files matched your search
@@ -14,6 +14,7 @@ members = [
|
||||
"crates/tsc-gateway-proto",
|
||||
"crates/tsc-model",
|
||||
"crates/tsc-observer",
|
||||
"crates/tsc-platform",
|
||||
"crates/tsc-query",
|
||||
"crates/tsc-store",
|
||||
"crates/tsc-stream",
|
||||
@@ -33,6 +34,7 @@ default-members = [
|
||||
"crates/tsc-gateway-proto",
|
||||
"crates/tsc-model",
|
||||
"crates/tsc-observer",
|
||||
"crates/tsc-platform",
|
||||
"crates/tsc-query",
|
||||
"crates/tsc-store",
|
||||
"crates/tsc-stream",
|
||||
|
||||
Reference in new issue
Block a user