From 61914db16b6e0b9fdd928367b6e58d98256cb6b9 Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 12 May 2026 08:33:45 +0200 Subject: [PATCH] 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 --- desktopenvs/hyprland/scripts/screenrotationacw.sh | 2 +- desktopenvs/hyprland/scripts/screenrotationwcw.sh | 2 +- desktopenvs/hyprland/scripts/unified-rotate.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktopenvs/hyprland/scripts/screenrotationacw.sh b/desktopenvs/hyprland/scripts/screenrotationacw.sh index 7737194..0791ee2 100755 --- a/desktopenvs/hyprland/scripts/screenrotationacw.sh +++ b/desktopenvs/hyprland/scripts/screenrotationacw.sh @@ -1,3 +1,3 @@ #!/bin/bash -~/.config/scripts/unified-rotate.sh ccw \ No newline at end of file +~/.config/scripts/unified-rotate.sh cw \ No newline at end of file diff --git a/desktopenvs/hyprland/scripts/screenrotationwcw.sh b/desktopenvs/hyprland/scripts/screenrotationwcw.sh index 0791ee2..7737194 100755 --- a/desktopenvs/hyprland/scripts/screenrotationwcw.sh +++ b/desktopenvs/hyprland/scripts/screenrotationwcw.sh @@ -1,3 +1,3 @@ #!/bin/bash -~/.config/scripts/unified-rotate.sh cw \ No newline at end of file +~/.config/scripts/unified-rotate.sh ccw \ No newline at end of file diff --git a/desktopenvs/hyprland/scripts/unified-rotate.sh b/desktopenvs/hyprland/scripts/unified-rotate.sh index bae1176..f19266c 100755 --- a/desktopenvs/hyprland/scripts/unified-rotate.sh +++ b/desktopenvs/hyprland/scripts/unified-rotate.sh @@ -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