Cycle input only through the shell's reader
Without the shell there is no bar or menu either, so the one-shot cycling path only duplicated the reader's logic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b5ebc57bf
commit
b0af02555e
3 files changed
+30
-76
No files matched your search
@@ -12,10 +12,10 @@ if [[ ${1:-} == "cycle" ]]; then
|
||||
echo "Usage: omarchy-input-method cycle [back]" >&2
|
||||
exit 1
|
||||
fi
|
||||
# The shell's reader retains a choice made while nothing has focus. Without
|
||||
# the shell, switch directly.
|
||||
if [[ $(omarchy-shell shell cycleInput "$direction" 2>/dev/null) != "ok" ]]; then
|
||||
python "$OMARCHY_PATH/default/input-methods/indicator.py" cycle "$direction"
|
||||
# The shell's reader retains a choice made while nothing has focus.
|
||||
if [[ $(omarchy-shell shell cycleInput "$direction") != "ok" ]]; then
|
||||
echo "The shell's input reader is not running" >&2
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
python "$OMARCHY_PATH/default/input-methods/configure.py" "$@"
|
||||
|
||||
Reference in new issue
Block a user