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