pass dmenu monitor

This commit is contained in:
gutmet 2021-03-14 22:03:41 +01:00
parent 206ad3c949
commit e9ab49cc29

View File

@ -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