diff --git a/bemoji b/bemoji index a472e0e..1f61ae9 100755 --- a/bemoji +++ b/bemoji @@ -25,6 +25,7 @@ declare -A default_pickers=( ["wofi"]="wofi -p 🔍 -i --show dmenu" ["rofi"]="rofi -p 🔍 -i -dmenu --kb-custom-1 "Alt+1" --kb-custom-2 "Alt+2"" ["dmenu"]="dmenu -p 🔍 -i -l 20" + ["wmenu"]="wmenu -p 🔍 -i -l 20" ["ilia"]="ilia -n -p textlist -l 'Emoji' -i desktop-magnifier" ["fuzzel"]="fuzzel -d -p '🔍 '" ) @@ -263,14 +264,13 @@ _typer() { # Set default picker util _picker() { if [ -n "$BEMOJI_PICKER_CMD" ]; then - # shellcheck disable=SC2068 - ${BEMOJI_PICKER_CMD[@]} + eval "${BEMOJI_PICKER_CMD[*]}" return fi for tool in "${!default_pickers[@]}"; do if command -v "$tool" >/dev/null 2>&1; then - ${default_pickers[$tool]} + eval "${default_pickers[$tool]}" return fi done