fix: fix autorotate
This commit is contained in:
parent
d16051dada
commit
588684b25b
1 changed files with 27 additions and 22 deletions
|
@ -8,7 +8,9 @@ WAYLANDINPUT=("wacom-hid-52eb-finger"
|
||||||
"wacom-hid-52eb-pen")
|
"wacom-hid-52eb-pen")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function rotate_ms {
|
function rotate_ms {
|
||||||
|
if [[ $(hyprctl activewindow | grep Waydroid) == "" ]]; then
|
||||||
case $1 in
|
case $1 in
|
||||||
"normal")
|
"normal")
|
||||||
rotate 0
|
rotate 0
|
||||||
|
@ -23,6 +25,9 @@ function rotate_ms {
|
||||||
rotate 1
|
rotate 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
elif [[ $(hyprctl monitors | grep "transform: 0") == "" ]]; then
|
||||||
|
rotate 0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function rotate {
|
function rotate {
|
||||||
|
|
Loading…
Reference in a new issue