You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
449 B

4 years ago
#!/usr/bin/env sh
INPUT="$(cat)"
4 years ago
pidof svkbd-sxmo || svkbd-sxmo &
4 years ago
RESULT="$(
echo "$(
echo "Close Menu" &&
echo "$INPUT" |\
grep -Eo '\S+' |\
tr -d '[:blank:]' |\
sort |\
uniq
)" | dmenu -p Type -l 10 -i -c -fn Terminus-20
)"
pkill svkbd-sxmo
4 years ago
if [[ "$RESULT" = "Close Menu" ]]; then
exit 0
4 years ago
else
xdotool type "$RESULT"
4 years ago
fi