charpicker icon indicating copy to clipboard operation
charpicker copied to clipboard

How to use with Wayland?

Open maricn opened this issue 5 years ago • 4 comments

I'm pretty new to Wayland, but so far I haven't found a way to set up xdotool to work on it. With installed both rofi and xdotool your charpicker pops up and i select emoji, but it doesn't get pasted in the open app, nor to clipboard.

I've changed the last line instead of using xdotool to echo -n "$selected_symbol" | wl-copy. Maybe you can include that in the README.md or you suggest a different approach?

maricn avatar Jul 13 '20 14:07 maricn

@maricn usually any program with x in the name like xdtool doesn't work with Wayland unless it's running under XWayland, which is Wayland's X emulator. As far as I know, rofi doesn't support natve Wayland. That's why I was surprised to see this repo claim that it supports Wayland. Since you posted that message, have you found anything? I am still looking.

ebrensi avatar Aug 04 '20 00:08 ebrensi

@ebrensi Check out https://github.com/maricn/charpicker I use wl-copy and then i just paste it from clipboard. If wl-copy doesn't exist on your system I make a conclusion you're running X11, so I fallback to the default xdotool.

maricn avatar Aug 04 '20 18:08 maricn

@maricn I actually got rofimoji working with a fork of rofi that runs natively in Wayland. Check out https://github.com/fdw/rofimoji/issues/47.

ebrensi avatar Aug 04 '20 19:08 ebrensi

@ebrensi nice, thanks for sharing..

maricn avatar Aug 07 '20 09:08 maricn