fix: fix autorotate

This commit is contained in:
matt1432 2023-06-27 00:23:22 +02:00
parent d16051dada
commit 588684b25b

View file

@ -8,7 +8,9 @@ WAYLANDINPUT=("wacom-hid-52eb-finger"
"wacom-hid-52eb-pen")
function rotate_ms {
if [[ $(hyprctl activewindow | grep Waydroid) == "" ]]; then
case $1 in
"normal")
rotate 0
@ -23,6 +25,9 @@ function rotate_ms {
rotate 1
;;
esac
elif [[ $(hyprctl monitors | grep "transform: 0") == "" ]]; then
rotate 0
fi
}
function rotate {