Closed touste closed 5 years ago
I think this looks fine, although I can not check the wayland part. The xorg still works so if you squash your commits, and add your name to the contributors in the readme, I'll merge this! Thanks for the PR :grin:
Done! I made one last useful change, I defined the default action when pressing Enter on an item in a variable so that it can be easily changed to auto_type all instead of copy_password for example.
fixes #25
3 changes were made:
Add AUTOTYPE_MODE variable and fill it either with xdotool or ydotool depending on which is installed on the system. This allows Wayland users to have autotyping working, assuming that ydotool has root permissions without asking for password.
Put the keyboard shortcuts in variables so that they can be easily changed.
Check for user-defined AUTOTYPE_MODE and CLIPBOARD_MODE variables. If it is set, use these commands (I believe it was the intended behaviour but the program was overriding these variables).
This has been tested in Wayland, please test it in Xorg to make sure there is no unexpected behaviour.