Last active
June 6, 2020 22:07
-
-
Save devmatteini/27a2fc4a548b1c46698ecf079b7805ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Keychron K2 Level Battery | |
# https://github.com/Kurgol/keychron/blob/master/k2.md#battery | |
# All information about the keyboard | |
upower --dump | grep keyboard -A 7 | |
# Show only battery low percentage | |
upower --dump | grep keyboard -A 7 | grep percentage | sed -e 's/^[ \t]*//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment