kde-auto-rotate
kde-auto-rotate copied to clipboard
AWK Parsing Not Working
This doesn't work for me on KDE Neon - the AWK run in the line linked below is always returning nothing, instead of returning the rotation. I assume this is due to text line format change (ah yes - the fun life of updating CLI parsers)
https://github.com/donbowman/kde-auto-rotate/blob/master/auto-rotate#L17
monitor-sensor | awk '/Accelerometer orientation changed:/ { print $NF; fflush();}' | while read line
Would you accept a patch overwriting this line with a more robust solution? I have one nearly working locally on my touchscreen Thinkpad hybrid (a helix, I believe).