diff --git a/bin/omarchy-input-method b/bin/omarchy-input-method index b06de763..b687b22f 100755 --- a/bin/omarchy-input-method +++ b/bin/omarchy-input-method @@ -18,5 +18,5 @@ if [[ ${1:-} == "cycle" ]]; then exit 1 fi else - python "$OMARCHY_PATH/default/input-methods/configure.py" "$@" + /usr/bin/python3 "$OMARCHY_PATH/default/input-methods/configure.py" "$@" fi diff --git a/bin/omarchy-setup-input b/bin/omarchy-setup-input index 3091c2b1..6aabe146 100755 --- a/bin/omarchy-setup-input +++ b/bin/omarchy-setup-input @@ -14,7 +14,7 @@ fi method=${1:-} if [[ -z $method ]]; then - python "$OMARCHY_PATH/default/input-methods/typing_setup.py" input + /usr/bin/python3 "$OMARCHY_PATH/default/input-methods/typing_setup.py" input exit fi @@ -25,5 +25,5 @@ esac mapfile -t packages < <(jq -r --arg method "$method" '.[$method].packages[]' "$OMARCHY_PATH/default/input-methods/presets.json") omarchy-pkg-add "${packages[@]}" -python "$OMARCHY_PATH/default/input-methods/typing_setup.py" add "$method" +/usr/bin/python3 "$OMARCHY_PATH/default/input-methods/typing_setup.py" add "$method" echo "Input method added. Use Super+I or the Japanese/Korean input key to switch; existing custom Fcitx keys are preserved." diff --git a/bin/omarchy-setup-keyboard b/bin/omarchy-setup-keyboard index ff7cee75..fb3e33ce 100755 --- a/bin/omarchy-setup-keyboard +++ b/bin/omarchy-setup-keyboard @@ -4,4 +4,4 @@ set -euo pipefail -python "$OMARCHY_PATH/default/input-methods/typing_setup.py" keyboard +/usr/bin/python3 "$OMARCHY_PATH/default/input-methods/typing_setup.py" keyboard diff --git a/default/input-methods/typing_setup.py b/default/input-methods/typing_setup.py index f8c59cf9..13993ab2 100644 --- a/default/input-methods/typing_setup.py +++ b/default/input-methods/typing_setup.py @@ -56,7 +56,7 @@ def choose(title, catalog, selected, kind, overrides=None): catalog = {**catalog, **{key: catalog.get(key, key) for key in selected}} rows = picker_rows(catalog, selected) args = ["omarchy-menu-select", title] + list(rows.values()) - on_change = ["python", str(setup.ROOT / "default/input-methods/typing_setup.py"), "apply", kind, json.dumps({"catalog": catalog, "overrides": overrides or {}})] + on_change = ["/usr/bin/python3", str(setup.ROOT / "default/input-methods/typing_setup.py"), "apply", kind, json.dumps({"catalog": catalog, "overrides": overrides or {}})] args += ["--", "--multiple", "--width", "620", "--maxheight", "650", "--on-change", json.dumps(on_change), "--change-key", "typing:" + kind] for key in selected: args += ["--selected", rows[key][1:]] diff --git a/shell/Commons/InputMethodState.qml b/shell/Commons/InputMethodState.qml index cf6a3b21..14a3494d 100644 --- a/shell/Commons/InputMethodState.qml +++ b/shell/Commons/InputMethodState.qml @@ -16,7 +16,7 @@ Singleton { // One reader and pending selection for every monitor's keyboard widget. Process { id: watcher - command: ["/usr/bin/python", Quickshell.env("OMARCHY_PATH") + "/default/input-methods/indicator.py"] + command: ["/usr/bin/python3", Quickshell.env("OMARCHY_PATH") + "/default/input-methods/indicator.py"] running: true stdinEnabled: true stdout: SplitParser {