15 lines
362 B
Bash
Executable File
15 lines
362 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# 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 "$2" |
|
|
dmenu -m "$1" -i -l 10 |
|
|
awk '{print $1}' |
|
|
tr -d "\n" |
|
|
xclip -selection clipboard
|