22 lines
539 B
Bash
Executable File
22 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Flip screen
|
|
# C-Fu for TCK
|
|
|
|
# Change reso
|
|
DISPLAY=:0 xrandr --output HDMI-1 --mode 1024x600
|
|
|
|
# Flip the display
|
|
#DISPLAY=:0 xrandr --output HDMI-1 --reflect x
|
|
DISPLAY=:0 xrandr --output HDMI-1 --reflect y
|
|
|
|
# Flip the touch input (using ID 7 for your specific device)
|
|
# Invert 180
|
|
#DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
|
|
|
|
# Normal
|
|
DISPLAY=:0 xinput set-prop 7 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
|
|
|
|
# Change reso
|
|
#DISPLAY=:0 xrandr --output HDMI-1 --mode 1024x600
|