This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:AC2D4E00990A6767]
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:AC2D4E00990A6767]
#!/usr/bin/env bash | |
PERCENTAGE="([0-9]*)%$" | |
CHARGING="(Charging)$" | |
BATTERY_LEVEL="$(headsetcontrol -b)" | |
DEVICE="(Found\s)(.*)!" | |
if [[ $BATTERY_LEVEL =~ $DEVICE ]]; then | |
DEVICE_NAME="${BASH_REMATCH[2]}" | |
else | |
DEVICE_NAME="none" |