2024-03-09 23:11:46 -08:00

9 lines
306 B
Bash
Executable File

#!/usr/bin/bash
# Returns true for hardware that needs a rotation fix in KDE
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
if [[ ":ROG Ally RC71L_RC71L:ROG Ally RC71L:83E1:Loki Max:G1618-04:G1619-04:21A0007TUK:HP ENVY x360 Convertible 13-ay0xxx:" =~ ":$SYS_ID:" ]]; then
exit 0
else
exit 1
fi