Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWK Parsing Not Working #1

Open
benyanke opened this issue Oct 15, 2018 · 5 comments
Open

AWK Parsing Not Working #1

benyanke opened this issue Oct 15, 2018 · 5 comments

Comments

@benyanke
Copy link

benyanke commented Oct 15, 2018

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 benyanke changed the title Not Working AWK Parsing Not Working Oct 15, 2018
@donbowman
Copy link
Owner

Got a PR? I'll take it!

its still running for me on my laptop last i checked.

@benyanke
Copy link
Author

What OS are you on? I suspect this could be relating to Neon's 18.04 base.

I'll format into a PR when I'm able.

@donbowman
Copy link
Owner

Its 18.04 kubuntu

@benyanke
Copy link
Author

hm. Odd.

@benyanke
Copy link
Author

Anyways, I'll try and get a PR in to look at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants