Script to rotate screen and devices such as touchscreen and pen input
Go to file
2022-05-23 17:32:30 +02:00
.gitignore update .gitignore 2022-05-23 13:44:31 +02:00
example.json add "fail_ok" to config 2022-05-23 13:26:09 +02:00
LICENSE init 2022-05-20 17:49:55 +02:00
Makefile update Makefile (json configuration) 2022-05-23 13:29:57 +02:00
PKGBUILD add Makefile, PKGBUILD 2022-05-22 14:01:25 +02:00
README.md update README.md 2022-05-23 13:40:50 +02:00
rotate-screen.py minor 2022-05-23 17:32:30 +02:00

RotateScreen

Usage

Rotate your screen, touchscreen and pen clockwise:

rotate-screen

Example output on a Microsoft Surface Go 2:

Rotating eDP-1 ...
  Mapping ELAN9038:00 04F3:2A1C to eDP-1
  Mapping ELAN9038:00 04F3:2A1C Stylus Pen (0) to eDP-1
  Mapping ELAN9038:00 04F3:2A1C Stylus Eraser (0) to eDP-1
  Mapping ELAN9038:00 04F3:2A1C Stylus to eDP-1
Mapping of ELAN9038:00 04F3:2A1C Stylus to eDP-1 failed

Further ideas

def get_sensor_orientation():
    """
    Get rotation from `monitor-sensor`.
    Example:
    - stdout: === Has accelerometer (orientation: left-up)
    - stdout:     Accelerometer orientation changed: left-up
    """