jbuchermn / newm

Wayland compositor
MIT License
960 stars 30 forks source link

Rotate screen #123

Closed cedrus-8864 closed 2 years ago

cedrus-8864 commented 2 years ago

Hi guys. I really love your work. A very quick question. How can I rotate my external monitor 90 degrees? Thank you. Have a great time.

jbuchermn commented 2 years ago

Thanks a lot!

Try

from pywm import (
    PYWM_TRANSFORM_90,
    PYWM_TRANSFORM_180,
    PYWM_TRANSFORM_270,
    PYWM_TRANSFORM_FLIPPED,
    PYWM_TRANSFORM_FLIPPED_90,
    PYWM_TRANSFORM_FLIPPED_180,
    PYWM_TRANSFORM_FLIPPED_270,
)
outputs = [
    { 'name': 'eDP-1', 'pos_x': 0, 'pos_y': 0, 'scale': 2., 'transform': PYWM_TRANSFORM_270 } # Adjust according to your monitor
]
cedrus-8864 commented 2 years ago

It works like a charm. Thank you.