diff --git a/bin/omarchy-input-method b/bin/omarchy-input-method new file mode 100755 index 00000000..b687b22f --- /dev/null +++ b/bin/omarchy-input-method @@ -0,0 +1,22 @@ +#!/bin/bash + +# omarchy:summary=Configure, inspect, or switch input methods +# omarchy:args= +# omarchy:hidden=true + +set -euo pipefail + +if [[ ${1:-} == "cycle" ]]; then + direction=${2:-next} + if [[ $direction != "next" && $direction != "back" ]]; then + echo "Usage: omarchy-input-method cycle [back]" >&2 + exit 1 + fi + # 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 + /usr/bin/python3 "$OMARCHY_PATH/default/input-methods/configure.py" "$@" +fi diff --git a/bin/omarchy-menu-keybindings b/bin/omarchy-menu-keybindings index ca5bdef0..18ca0d21 100755 --- a/bin/omarchy-menu-keybindings +++ b/bin/omarchy-menu-keybindings @@ -555,7 +555,7 @@ output_binding_records_uncached() { keybindings_cache_key() { { - printf 'v14\n' + printf 'v15\n' hyprctl devices 2>/dev/null | grep -F 'active keymap:' cat "$key_names_file" 2>/dev/null hyprctl binds 2>/dev/null diff --git a/bin/omarchy-menu-select b/bin/omarchy-menu-select index 1404665f..18f3ed14 100755 --- a/bin/omarchy-menu-select +++ b/bin/omarchy-menu-select @@ -1,9 +1,9 @@ #!/bin/bash -# omarchy:summary=Pick one option from a menu +# omarchy:summary=Pick one or multiple options from a menu # omarchy:group=menu # omarchy:name=select -# omarchy:args=prompt [option...] [-- menu args...] +# omarchy:args=prompt [option...] [-- --multiple --selected --on-change --change-key --width --maxheight ] # omarchy:examples=omarchy menu select Format jpg png|omarchy-menu-select Resolution 4k 1080p 720p -- --width 400 # An option may lead with an icon, as "