Skip to content

feat(linux): --profile-slot / --agent-slot 讓 Wayland 也能切 profile - #167

Merged
yazelin merged 3 commits into
mainfrom
feat/cli-profile-slots
Oct 15, 2026
Merged

yazelin merged 3 commits into
mainfrom
feat/cli-profile-slots

Conversation

@yazelin

@yazelin yazelin commented Oct 8, 2026

Copy link
Copy Markdown
Owner

GNOME Wayland 沒有 GlobalShortcuts portal 時,Alt+09 / Ctrl+Alt+09 都註冊不起來(log:portal global shortcut unavailable),只剩 --toggle-recording 綁的 Ctrl+Alt+Space 能用。

比照 --toggle-recording 加 --profile-slot N / --agent-slot N:第二個實例在 single-instance callback 轉發成既有的 PROFILE_SLOT / AGENT_SLOT 事件;Mori 還沒開時第一個實例在 setup 尾端自己 emit。README 附 gsettings 一次綁 20 組的指令。

這個分支疊在 #166 上(含它的 commit),#166 先合。

驗證:

  • slot_arg 單元測試(0~9、超出範圍、缺值、無旗標)
  • 本機 release build,GNOME 綁好 20 組;跑 mori-tauri --agent-slot 1 → log agent profile switched slot=1 profile=AGENT-01.翻譯助手,--profile-slot 0 → voice input profile switched slot=0,第二個實例自行結束

🤖 Generated with Claude Code

yazelin and others added 3 commits October 8, 2026 12:43
… / Ctrl+Alt+N 也能切 profile

GNOME 沒 GlobalShortcuts portal,22 條熱鍵只剩 --toggle-recording 備援的 Ctrl+Alt+Space 能用。
比照它加兩個 CLI 旗標,第二個實例轉發、第一個實例 setup 尾端自己 emit;README 附 gsettings 綁法。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yazelin
yazelin merged commit 611c889 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant