Unify input method and keyboard layout switching

This commit is contained in:
David Heinemeier Hansson committed 2026-10-09 15:22:47 +02:00
1 parent e8b1a1f874
commit 73c0660fde
8 files changed
+99 -34

No files matched your search

@@ -91,14 +91,6 @@ BarWidget {
//
// Keyboards given their own kb_layout hold a different list and are left out:
// an index into this list would not mean the same layout to them.
ShellIpc {
target: "omarchy.keyboard-layout"
function cycle(): void {
root.cycleLayout()
}
}
function cycleLayout() {
if (!root.bar || root.layoutCount < 2 || root.syncNames.length === 0) return
const next = (root.layoutIndex + 1) % root.layoutCount
@@ -256,8 +248,6 @@ BarWidget {
InputMethodState.cycle()
} else if (root.multipleLayouts) {
root.cycleLayout()
} else if (!root.multipleInputs && root.bar) {
root.bar.run("omarchy-launch-floating-terminal-with-presentation 'omarchy-setup-input'")
}
}
}