#!/bin/bash

sed -i "s/rotation\": 8/rotation\": 1/" /usr/share/kscreen/generic-config

kwriteconfig5 --file /etc/xdg/kdeglobals --group KScreen --key ScaleFactor 1
kwriteconfig5 --file /etc/xdg/kdeglobals --group KScreen --key ScreenScaleFactors DSI-1=1

echo "ENV{IIO_SENSOR_PROXY_TYPE}==\"*accel*\", ENV{ACCEL_MOUNT_MATRIX}=\"0,-1,0;-1,0,0;0,0,1\"" > /etc/udev/rules.d/99-astra-mobile-orientation.rules

echo 'Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	Option "Rotate"    "normal"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
EndSection

' > /etc/X11/xorg.conf.d/99-calibration.conf
