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
The_miro 2026-05-12 08:33:45 +02:00
parent 0571a83567
commit 61914db16b
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash
~/.config/scripts/unified-rotate.sh ccw
~/.config/scripts/unified-rotate.sh cw

View File

@ -1,3 +1,3 @@
#!/bin/bash
~/.config/scripts/unified-rotate.sh cw
~/.config/scripts/unified-rotate.sh ccw

View File

@ -43,11 +43,11 @@ echo "Rotating monitor '$curmon' from $currot to $newrot ($direction)"
hyprctl keyword monitor "$curmon,preferred,auto,1,transform,$newrot"
# 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
echo "Applying same rotation to touchscreen: $touchdev"
hyprctl keyword "device:$touchdev" transform "$newrot"
hyprctl keyword "device[$touchdev]:transform" "$newrot"
else
echo "No touchscreen device detected."
fi