2021-03-14 21:06:20 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-03-14 21:07:54 +01:00
|
|
|
# call this with a single 'ranges' parameter for unicodedata
|
2021-03-14 21:09:17 +01:00
|
|
|
# e.g. dmenu_charinput '13000..1342F 1F600..1F64F'
|
2021-03-14 21:07:54 +01:00
|
|
|
|
2021-03-14 21:06:20 +01:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
unicodedata -ranges "$1" |
|
|
|
|
dmenu -i -l 10 |
|
|
|
|
awk '{print $1}' |
|
|
|
|
tr -d "\n" |
|
|
|
|
xclip -selection clipboard
|