diff --git a/config.def.h b/config.def.h index 91ab8ca..6d1aee0 100644 --- a/config.def.h +++ b/config.def.h @@ -170,6 +170,11 @@ static unsigned int defaultattr = 11; */ static uint forcemousemod = ShiftMask; +/* + * Command used to query unicode glyphs. + */ +char *iso14755_cmd = "dmenu -w \"$WINDOWID\" -p codepoint: 7) + return; + if ((utf32 = strtoul(us, &e, 16)) == ULONG_MAX || + (*e != '\n' && *e != '\0')) + return; + + ttywrite(uc, utf8encode(utf32, uc), 1); +} + void toggleprinter(const Arg *arg) { diff --git a/st.h b/st.h index 519b9bd..51aa1ae 100644 --- a/st.h +++ b/st.h @@ -81,6 +81,7 @@ void die(const char *, ...); void redraw(void); void draw(void); +void iso14755(const Arg *); void printscreen(const Arg *); void printsel(const Arg *); void sendbreak(const Arg *); @@ -126,3 +127,4 @@ extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; extern unsigned int defaultcs; +extern char *iso14755_cmd;