chore(scripts): changed rotation method on mouserotation.sh

This commit is contained in:
Afonso Franco 2024-06-08 18:12:01 +01:00
parent 1868a7156c
commit 20c225b8ca
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
for id in `xinput --list | awk '/Razer Razer DeathAdder V3 Pro .*pointer/ {print $8}' | sed 's/id=\(.*\)/\1/'`; do for id in `xinput --list | awk '/Razer Razer DeathAdder V3 Pro .*pointer/ {print $8}' | sed 's/id=\(.*\)/\1/'`; do
notify-send "Applied Mouse Rotation" notify-send "Applied Mouse Rotation"
xinput set-prop $id "Coordinate Transformation Matrix" 0.9848 0.1736 0 -0.1736 0.9848 0 0 0 1 xinput set-prop $id "libinput Rotation Angle" 350
sleep 1 sleep 1
done done