Skip to content
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

New package: ydotool-0.1.8 #25341

Closed
wants to merge 1 commit into from
Closed

Conversation

petrvelicka
Copy link
Contributor

No description provided.

@dashezup
Copy link
Contributor

dashezup commented Oct 4, 2020

  1. /dev/input
    If I recall correctly, ydotool need to access /dev/uinput to work.
    normal user can't access /dev/uinput, so you need to run ydotool with root, or add your user to a group and then add udev rules to allow the group to access it
    Technical question (for creating PPA & using for touchpad gestures) ReimuNotMoe/ydotool#25 (comment)

  2. /tmp/.ydotool_socket
    In this case, ydotoold is run by the service (with root), it creates /tmp/.ydotool_socket` with permission 600 (in this case, only the user root can access to it)
    So even if you have that udev rules and added the user to that group, another condition to meet to be able to use ydotool with normal user is having ydotoold and ydotool run with the same user.
    I mentioned it here: Permission of /tmp/.ydotool_socket is too restricted ReimuNotMoe/ydotool#73

Basically if you want to use ydotool directly, you must run it with root. Do you use ydotool by always run it with root user or sudo ? I wonder how do people use it, it's barely usable/useful to me if I need to run it with sudo.

If we want to solve this on our side, we can include the udev rules in this package, notice user to add himself to the specific group (maybe we should use input group?). If the user want to use ydotoold as service, then he need to change the uid/gid which runs ydotoold in the runit service.

exec chpst -u root:input /usr/bin/ydotoold

you can add ", works on Wayland" to short description, so people can search it with keyword "wayland".

You can check my template (search srcpkgs/ydotool there)

srcpkgs/ydotool/INSTALL.msg
srcpkgs/ydotool/files/80-uinput.rules
srcpkgs/ydotool/files/ydotoold/log/run   (log is not necessary and idk much about it)
srcpkgs/ydotool/files/ydotoold/run
srcpkgs/ydotool/template

@ericonr ericonr added the new-package This PR adds a new package label Dec 20, 2020
@lelgenio
Copy link

For anyone interested, it may be better to use wtype.
If using sway, man 5 sway-input has options for moving the cursor and pressing buttons.

@noarchwastaken noarchwastaken mentioned this pull request Jun 1, 2021
3 tasks
@ericonr
Copy link
Member

ericonr commented Jul 21, 2021

Superseded by #31237

@ericonr ericonr closed this Jul 21, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-package This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants