-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for ydotool #212
base: main
Are you sure you want to change the base?
Conversation
Ok I fixed the issue with typing that A with the circle on top |
@fdw Please take a look at my PR 🥰 |
Thanks for the PR! 🙂 The The numerical input
One final request: Have I overlooked something? Do you disagree somewhere? |
Oh! So you want to implement the As for the hard errors on |
Changes: - Added ydotool.py - updated README - added ydotool to possible typer arguments - added helper methods to convert to/from unicode and ydotool keycodes - added ydotool to the list of supported typers - Changed the supported() method of wtype to return False if the compositor does not support virtual keyboard
Also, as for the socket thing; |
This removes the checking for specific error messages on wtype and ydotool to determine compatibility. Added a "Troubleshooting" section to the README to help users with common issues with the typers.
I don't think it's necessary for the other typers, but it should work with them and there is no harm in implementing it like that, I think.
Adding it to the documentation is better than adding it to the code, but the Readme is already very long. I would have expected people to search for the error message and then finding the tool's own documentation, which is more extensive and up-to-date than
But all the current code is doing is checking whether |
Changes implemented by adding a new method to actions.py which gets the "event code" of a key. This method is used in the ydotool.py script to get the event code of a key and then use it to send the key press event to the system. Has a helper dictionary to map key names to event codes in input_event_codes.py Also I cleaned up some code; removed the socket thing.
9a5665c
to
c57a477
Compare
Do not underestimate people's capacity for being dumb. Also, you were right about the socket thing. I don't need to pass in an env variable. Fixed. Lastly, a |
True, but that doesn't mean I have to take responsibility for all possible problems. If they open an issue here, I always try to help, but I think it's also fair to expect everyone to solve their problems on their own first. If I wanted to collect all possible errors and weird circumstances, I'd be quite busy.
Thank you 🙂
As you want 🙂 But then we should do that first, as |
Added Pull Request #213 to implement numerical action |
🪛 ydotool
Added support for ydotool as a "typer" for rofimoji.
This typer requires a service called ydotoold to be running, but gets arround the limitations on Wayland of wtype not supporting the compositor. Should probably update the documentation to instruct users as to how to use ydotool.
Also updated the is_supported() condition for wtype to account for the compositor issue.I tested my changes with all the selectors for both the
clipboard
andtype
actions.Resolves issue GH-211
KNOWN ISSUES:
The X-ray emoji 🩻 and Screwdriver emoji 🪛 keeps typing as Ǻ for some reason on the "type" action.This issue could be on other emojis, please help. Smiley emojis seem to be unaffected