added screenrotation scripts for implementing touch rotation

main
The_miro 2025-05-29 17:10:35 +02:00
parent 0f02fb8942
commit 98595d39c8
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
curmon=$(hyprctl monitors | grep -B11 "focused: yes" | head -n1 | awk '{print $2}')
currot=$(hyprctl monitors | grep -B1 "focused: yes" | head -n1 | awk '{print $2}')
newrot=""
if [ $currot == "3" ]; then
newrot="0"
else
newrot=$(($currot + 1))
fi
echo $newrot
hyprctl keyword monitor $curmon,preferred,auto,1,transform,$newrot
eww reload

View File

@ -0,0 +1,15 @@
#!/bin/bash
curmon=$(hyprctl monitors | grep -B11 "focused: yes" | head -n1 | awk '{print $2}')
currot=$(hyprctl monitors | grep -B1 "focused: yes" | head -n1 | awk '{print $2}')
newrot=""
if [ $currot == "0" ]; then
newrot="3"
else
newrot=$(($currot - 1))
fi
echo $newrot
hyprctl keyword monitor $curmon,preferred,auto,1,transform,$newrot
eww reload