Show input switching only for multiple layouts or methods

This commit is contained in:
David Heinemeier Hansson committed 2026-10-09 15:18:33 +02:00
1 parent 59fb2fd304
commit e8b1a1f874
6 files changed
+19 -8

No files matched your search

@@ -91,6 +91,14 @@ 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