fdw / rofimoji

Emoji, unicode and general character picker for rofi and rofi-likes
https://github.com/fdw/rofimoji
MIT License
844 stars 48 forks source link

Native Wayland support #47

Closed ebrensi closed 4 years ago

ebrensi commented 4 years ago

Hi, nice little app you have here. I recently installed Arch with Sway and as of yet I have not found a symbol picker. I used rofimoji a bit on another laptop but it doesn't do anything in sway. No error messages in the terminal. I figure it's because rofi doesn't work with Wayland. It might work if I use XWayland but I'm trying to avoid that.

There is a fork of rofi here that supports Wayland.

ebrensi commented 4 years ago

ok I tried rofimoji with that fork of rofi (unofficial PKGBUILD) and it runs natively in Wayland!! So far this is the only such GUI emoji picker I have found.

However, I have to run it with the --copy-only flag. With default settings and with --insert-with-clipboard, I can pick the emoji but on attempted insert I get

Error: Can't open display: (null)
Failed creating new xdo instance

I also have wl-clipboard-x11 installed, which creates xclip and xsel aliases for wl-clipboard, which provides native Wayland clipboard functionality.

fdw commented 4 years ago

Interesting, thanks :) However, I guess rofimoji will still fail when using xdotool and xsel.

For full Wayland support (and also of xclip), there's also some interesting comments in #21. I'll see if I can play with that soon-ish.

ebrensi commented 4 years ago

see my edit above. Does github notify you when people make edits to old comments?... Anyway thanks. this works for me at the moment.

fdw commented 4 years ago

I'll collect everything related to this in #21, as that ticket solves Wayland support and more. Please join us there 🙂