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

libinput: Rotation Angle option. #7865

Closed
sonjiku opened this issue Dec 19, 2023 · 8 comments
Closed

libinput: Rotation Angle option. #7865

sonjiku opened this issue Dec 19, 2023 · 8 comments
Labels
enhancement New feature or incremental improvement

Comments

@sonjiku
Copy link

sonjiku commented Dec 19, 2023

Libinput has an option where you can change the rotation angle for an input method. Can be viewed here and here.

Option "RotationAngle" "float"
Sets the rotation angle of the device to the given angle, in degrees clockwise. The angle must be between 0.0 (inclusive) and 360.0 (exclusive).

My mouse is not functioning as expected and it's movement is inverted. If this option was implemented in sway I wouldn't have to be searching for a fix for 2 days and could have just rotated it 180deg in 2 mins.

@sonjiku sonjiku added the enhancement New feature or incremental improvement label Dec 19, 2023
@emersion
Copy link
Member

This is already implemented with input … rotation_angle ….

@sonjiku
Copy link
Author

sonjiku commented Dec 19, 2023

Ok, so I updated my config to look like this:

# Mouse settings
input type:pointer {
    accel_profile "flat"
    pointer_accel "0.0"
    natural_scroll disabled
    rotation_angle 180.0
}

And when I restarted sway, I got this error:

Error on line 17 (/home/user/.config/sway/config.d/40-input.conf) 'rotation_angle 180.0': Unkown/invalid command 'rotation_angle'

Also the man page for sway-input doesn't reference that option.

Running sway -v gets me this output:

sway version 1.8.1

@emersion

@emersion
Copy link
Member

@emersion
Copy link
Member

Ah, probably because this commit hasn't been released yet: efd83cb

@sonjiku
Copy link
Author

sonjiku commented Dec 19, 2023

Yes, I noticed the code and found it weird, so I assumed the code was written, and then someone probably forgot to implement it in the release.

@sonjiku
Copy link
Author

sonjiku commented Dec 21, 2023

Since this isn't resolved, shouldn't this issue be open?

@emersion
Copy link
Member

This is resolved. Nobody forgot anything, it's just that there hasn't been a new Sway release since this commit was merged.

@sonjiku
Copy link
Author

sonjiku commented Dec 21, 2023

Ok, so should I expect a new release soon? I don't wanna nag, but I just wanna know if I should get a new mouse or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

2 participants