A few years ago I wrote https://gitlab.com/finnoleary/zhmenu (excuse the deadname in the URL there). I'm reasonably sure it partially counts? I'd meant to build an emoji database for it but never got around to it.
Emotional about X11: I'm creating a pure X11 “emoji keyboard”
11–20 of 102 posts
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#12Earlier quoted context omitted.
i enter the five emojis i ever need to use by pressing +u and then typing the emoji word. i think i can use skin color thumbs up just fine. but yeah, no search. but also no extra windows. when i asked i assumed compose + something like an IME could solve both with the search/window being optional.
Xcompose only offers sequences started with the "compose" key (whatever it is mapped to) and resulting in a single X key-symbol, so to type an emoji needing multiple uniciode codepoints that way, you'd have to enter multiple "compose sequences". Whatever you describe here is not simple Xcompose. AFAIK, GTK offers entering unicode codepoints in a similar way ... Of course you can do a lot of things with "input methods…
Implementation is beyond my ability, but if en-US locale were to finally adopt IME, I think it should be semi-trivial to include an optional dictionary file trained with emoji :tofu_on_fire: notation.
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#13Looks promising! I think I did managed to wrangle fcitx into some reasonable emoji input in the past but at some point it broke / I lost it and configuring that tool is just an unpredictable mess... Will keep an eye on yours!
Sending fake key events is unfortunately "hacky". You need to temporarily switch the keyboard mapping, and many X applications have races between applying a new mapping and processing key press events, that's why I added (now configurable, new release soon) delays... and also, I found applications (e.g. chromium) having issues to correctly combine ZWJ sequences from individual key events, so I added more "hacks" to help with that, also just made configurable.
To sidestep these issues, my tool also offers transfer via "primary selection": Just middle-click an emoji to select it, and middle-click again where you want to insert it. Downside: Two clicks instead of just one.
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#14as long as i need to run nvidia with multiple monitors, i'll hang on to x11.
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#15as long as i need to run nvidia with multiple monitors, i'll hang on to x11.
Apart from that, use X11 as long as you wish!
I'm just glad we can finally improve the open source desktop-environment infrastructure to match those of Windows and macOS: we've been stuck for too long.
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#16Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#17Nevertheless, it looks like a pretty cool tool!
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#18as long as i need to run nvidia with multiple monitors, i'll hang on to x11.
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#19During COVID, people were using a golf club as a substitute for a cotton swab.
We now have generative AI that can make any desired emoticon you can dream of, except you can't use it because of Unicode.
Re: Emotional about X11: I'm creating a pure X11 “emoji keyboard”
#20 cat ~/.local/share/emojis/emojis| wofi -i -d -M fuzzy -H 700 | cut -d " " -f 1 | tr -d '\040\011\012\015' | wtype -
It shows an overlay fuzzy-searchable list of all emojis, and it writes selected one to the input regardless of the toolkit. assign it to a keyboard shortcut and you're good to go.the ~/.local/share/emojis/emojis file is just a list of all emojis:
cat ~/.local/share/emojis/emojis | head -n 3
Grinning Face
Grinning Face with Big Eyes
Grinning Face with Smiling Eyes
(HN is removing the emojis but each line starts with the emoji self, followed by the description)