diff --git a/dmenu_charinput b/dmenu_charinput index 28689fb..c3b9806 100755 --- a/dmenu_charinput +++ b/dmenu_charinput @@ -1,12 +1,14 @@ #!/bin/sh -# call this with a single 'ranges' parameter for unicodedata -# e.g. dmenu_charinput '13000..1342F 1F600..1F64F' +# it is probably easiest to link this and unicodedata to /usr/local/bin for use with dwm + +# call this with the dmenu monitor and a single 'ranges' parameter for unicodedata +# e.g. dmenu_charinput 0 '13000..1342F 1F600..1F64F' set -eu -unicodedata -ranges "$1" | - dmenu -i -l 10 | +unicodedata -ranges "$2" | + dmenu -m "$1" -i -l 10 | awk '{print $1}' | tr -d "\n" | xclip -selection clipboard