sens fixes

This commit is contained in:
h
2023-10-06 01:41:47 -04:00
parent dbaad82b20
commit 35f9262829
4 changed files with 13 additions and 5 deletions
+3
View File
@@ -7,6 +7,7 @@ if [ "$1" == "portrait" ] && [ "${WINDOW_MODE}" != "portrait" ]; then
rotate-screen eDP-1 left;
xinput set-prop 9 --type=float "Coordinate Transformation Matrix" 0 -1 0 1 0 0 0 0 1
xinput set-prop 10 --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
xinput set-prop 17 --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
pkill actuator;
actuator "${XDG_CONFIG_HOME}/actuator/uzui/portrait.toml" &
@@ -15,6 +16,7 @@ elif [ "$1" == "landscape" ] && [ "${WINDOW_MODE}" != "landscape" ]; then
rotate-screen eDP-1 normal;
xinput set-prop 9 --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
xinput set-prop 10 --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
xinput set-prop 17 --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
pkill actuator;
actuator "${XDG_CONFIG_HOME}/actuator/uzui/landscape.toml" &
@@ -23,6 +25,7 @@ elif [ "$1" == "tablet" ] && [ "${WINDOW_MODE}" != "tablet" ]; then
rotate-screen eDP-1 inverted;
xinput set-prop 9 --type=float "Coordinate Transformation Matrix" -1 0 0 0 -1 0 0 0 1
xinput set-prop 10 --type=float "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
xinput set-prop 17 --type=float "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
pkill actuator;
actuator "${XDG_CONFIG_HOME}/actuator/uzui/tablet.toml" &
fi