hyprland: fix screen rotation touchscreen input after 0.55.0 update
Fix touchscreen detection (section renamed from Touchscreen to Touch Device) and device keyword syntax (device:NAME -> device[NAME]:transform). Also swap cw/ccw in acw/wcw wrapper scripts which were inverted. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
0571a83567
commit
61914db16b
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
~/.config/scripts/unified-rotate.sh ccw
|
~/.config/scripts/unified-rotate.sh cw
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
~/.config/scripts/unified-rotate.sh cw
|
~/.config/scripts/unified-rotate.sh ccw
|
||||||
|
|
@ -43,11 +43,11 @@ echo "Rotating monitor '$curmon' from $currot to $newrot ($direction)"
|
||||||
hyprctl keyword monitor "$curmon,preferred,auto,1,transform,$newrot"
|
hyprctl keyword monitor "$curmon,preferred,auto,1,transform,$newrot"
|
||||||
|
|
||||||
# Detect touchscreen device name
|
# Detect touchscreen device name
|
||||||
touchdev=$(hyprctl devices | awk '/Touchscreen/{getline; print $2}')
|
touchdev=$(hyprctl devices | awk '/Touch Device/{getline; print $1}')
|
||||||
|
|
||||||
if [[ -n "$touchdev" ]]; then
|
if [[ -n "$touchdev" ]]; then
|
||||||
echo "Applying same rotation to touchscreen: $touchdev"
|
echo "Applying same rotation to touchscreen: $touchdev"
|
||||||
hyprctl keyword "device:$touchdev" transform "$newrot"
|
hyprctl keyword "device[$touchdev]:transform" "$newrot"
|
||||||
else
|
else
|
||||||
echo "No touchscreen device detected."
|
echo "No touchscreen device detected."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue