You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently switched to wayland, and sadly this program does not work properly.
To make it work on wayland it should use the wtype binary instead of xdotool.
You can also detect the use of a wayland system with the help of these two env variables: XDG_SESSION_TYPE and WAYLAND_DISPLAY.
@mathix420 Apologies for late reply.
I also don't have much experience with X11/wayland systems.
But my understanding is rofi doesn't support wayland. Please correct me if I am wrong.
So I am not sure, whether switching to wtype from xdotool alone will solve the problem.
I was rather thinking of some kind of logic based on the provided env variables to detect which protocol is used and therefore call the right utility to set the clipboard. Not defaulting the whole project to using wtype.
I recently switched to wayland, and sadly this program does not work properly.
To make it work on wayland it should use the
wtype
binary instead ofxdotool
.You can also detect the use of a wayland system with the help of these two env variables:
XDG_SESSION_TYPE
andWAYLAND_DISPLAY
.Similar implementation: https://github.com/Mange/rofi-emoji/blob/1ac0b7600e0b73c8877a2f3863651c775bbd7ddb/clipboard-adapter.sh#L158
I would love to implement this myself but I have zero experience with rust.
The text was updated successfully, but these errors were encountered: