Repository navigation
feat(linux): --profile-slot / --agent-slot 讓 Wayland 也能切 profile - #167
Merged
Merged
Conversation
… / 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GNOME Wayland 沒有 GlobalShortcuts portal 時,Alt+0
9 / 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、超出範圍、缺值、無旗標)mori-tauri --agent-slot 1→ logagent profile switched slot=1 profile=AGENT-01.翻譯助手,--profile-slot 0→voice input profile switched slot=0,第二個實例自行結束🤖 Generated with Claude Code