marty-oehme / bemoji

Emoji picker that remembers your favorites, with support for bemenu/wofi/rofi/dmenu and wayland/X11.
MIT License
87 stars 6 forks source link

Improve custom BEMOJI_TYPE_CMD documentation #33

Open dotaxis opened 2 months ago

dotaxis commented 2 months ago

Running from the terminal just gives this output. The emoji selector does appear.

bemoji -t
Usage: wtype <text-to-type>

Using keyboard shortcut it shows the emoji selector but then types nothing.

I'm using rofi as my picker.

Not sure when it stopped working but I know it worked a couple of weeks ago.

marty-oehme commented 2 months ago

Interesting, as of right now the wtype functionality still works on my end. Essentially we just invoke wtype -s 30 "the-emoji" on our end.

Did wtype update as of late? Perhaps the -s switch was renamed? We use it to wait a tiny bit before inputting anything.

Another possible area to investigate could be - are you manually setting the BEMOJI_TYPE_CMD environment variable? If you are it may not work with wtype since we 'pipe' the result into the custom command but wtype needs it passed as an argument and does not understand pipes. That would also result in such an error message.

dotaxis commented 2 months ago

I actually was manually setting the BEMOJI_TYPE_CMD env var and unsetting it seems to have solved this issue.

Some further documentation on this would be great but I'm just happy to have it working now. :)

marty-oehme commented 2 months ago

If you don't mind I would reopen this for the time being to figure out a better way to either