Skip to content

Commit c63ec53

Browse files
Kabuki94claude
andcommitted
feat(theme): summon_keys + summon_window_name for global Win+Space toggle
Per operator: "MiOS app should be invokable via a chord/keycombo like winkey + Spacebar to open and close the window at will". mios.toml [theme.terminal]: summon_keys = "win+space" (override to "ctrl+shift+space" etc.) summon_window_name = "MiOS" (the named window the chord targets) mios-config.html: two new fields under "theme.terminal & theme.prompt" fieldset so the operator can edit the chord through the configurator. The actual binding is written to WT's settings.json by Get-MiOS.ps1's Install-MiOSTerminalProfile (lands in mios-bootstrap concurrently). The binding uses WT's globalSummon action with toggleVisibility=true, monitor=toMouse so the window appears on whichever monitor the cursor is currently on (matches the existing centering logic). Note: Win+Space is normally Windows' keyboard-layout switch. WT's globalSummon overrides it WHILE WT is running. If the operator prefers to keep layout-switch on Win+Space, they can override the toml key to "ctrl+shift+space" / "win+grave_accent" / "ctrl+win+m" without touching code. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent ff7c008 commit c63ec53

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

usr/share/mios/configurator/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ <h1>MiOS configurator <span class="v" id="v-meta">schema 1.2.0 / mios 0.2.4</spa
551551
<input type="text" id="f-tt-profile" data-key="theme.terminal.profile_name" placeholder="MiOS">
552552
<label for="f-tt-devprofile">dev_profile_name</label>
553553
<input type="text" id="f-tt-devprofile" data-key="theme.terminal.dev_profile_name" placeholder="MiOS-DEV">
554+
<label for="f-tt-summon-keys">summon_keys (toggle MiOS app from anywhere)</label>
555+
<input type="text" id="f-tt-summon-keys" data-key="theme.terminal.summon_keys" placeholder="win+space">
556+
<label for="f-tt-summon-name">summon_window_name</label>
557+
<input type="text" id="f-tt-summon-name" data-key="theme.terminal.summon_window_name" placeholder="MiOS">
554558
<label for="f-tp-omp">omp_path</label>
555559
<input type="text" id="f-tp-omp" data-key="theme.prompt.omp_path" placeholder="/usr/share/mios/oh-my-posh/mios.omp.json">
556560
</fieldset>

usr/share/mios/mios.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,15 @@ chrome_h_px = 12
13431343
scheme_name = "MiOS"
13441344
profile_name = "MiOS"
13451345
dev_profile_name = "MiOS-DEV"
1346+
# Global summon keybinding (toggle MiOS WT window open/close from
1347+
# anywhere on the desktop). Uses WT's globalSummon action targeting
1348+
# the named window. Operator: "MiOS app should be invokable via a
1349+
# chord/keycombo like winkey + Spacebar to open and close the
1350+
# window at will". Override here to change the chord (e.g.
1351+
# "ctrl+shift+space", "win+grave_accent" for the classic quake
1352+
# pattern, "ctrl+win+m" for a more MiOS-flavored chord).
1353+
summon_keys = "win+space"
1354+
summon_window_name = "MiOS"
13461355

13471356
[theme.prompt]
13481357
# oh-my-posh renderer config. The mios.omp.json on disk is the source

0 commit comments

Comments
 (0)