Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
571 B
Bash
Executable File
18 lines
571 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Configure, inspect, or switch input methods
|
|
# omarchy:args=<status|cycle|configure [--seed|--defaults] [none|mozc|hangul|pinyin|chewing]>
|
|
# omarchy:hidden=true
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ ${1:-} == "cycle" ]]; then
|
|
# The shell's reader retains a choice made while nothing has focus. Without
|
|
# the shell, switch directly.
|
|
if [[ $(omarchy-shell shell cycleInput 2>/dev/null) != "ok" ]]; then
|
|
python "$OMARCHY_PATH/default/input-methods/indicator.py" cycle
|
|
fi
|
|
else
|
|
python "$OMARCHY_PATH/default/input-methods/configure.py" "$@"
|
|
fi
|