You can try to use xset:
xset q | grep "LED mask"
Then parse LED mask by awk to produce desired output.

Reply via email to