kde-auto-rotate icon indicating copy to clipboard operation
kde-auto-rotate copied to clipboard

AWK Parsing Not Working

Open benyanke opened this issue 5 years ago • 5 comments

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).

benyanke avatar Oct 15 '18 18:10 benyanke