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
[Feature Request] Rotate input #3840
Comments
Can you try mapping the touch screen to the output? |
How does one do that? Sorry, I'm very new to Sway |
You can have a look at the manpage: |
That worked a treat! Thank you very much and sorry for wasting your time. I will check the man pages more thoroughly next time 😄 |
Thanks for the hint, @emersion! 👍 This worked for me:
To get input and output devices, I did On my Lenovo X220 tablet, this ended up being
After that, I flipped the screen using
and positioning the cursor on the screen with a finger or the stylus worked flawlessly. |
I have this config file
the touchscreen is a cheapo 7in hdmi module from ali. input is flipped both horizontally and vertically. |
I have a 2-in-1 laptop and sometimes I like to rotate the screen 90 degrees and read PDF's and the like. Back in X, I used to be able to do this:
xrandr --output eDP --rotate right && xinput set-prop "ELAN Touchscreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
I can do the first part of the command, the rotating of the screen in Sway, but the second part, which is rotating the input of the touch screen I did not find in the documentation, so I think this is not implement yet.
The text was updated successfully, but these errors were encountered: