Replies: 2 comments 1 reply
-
...and already I've come up with an improvement to the script. While charging, replace the word with a lightning bolt: #!/bin/zsh
batt=`headsetcontrol -b | grep "Battery" | awk {'printf $2'}`
if [[ $batt == "Charging" ]]; then
batt=🗲
fi
echo 🎧 $batt |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you for the cool idea and solution! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was really happy to find that this tool supports the Logitech G Pro X headset. I've been looking for a way to get some sort of indication of my headsets battery since G HUB isn't available for Linux Operating Systems. Here is a rundown of my little bodge!
The Process:
The gists script is fairly straightforward. Get just the battery percentage, and print it after the headset emoji 🎧:
The Result:
The indicator sitting comfortably next to my other usage widgets! This is the widest the widget generally gets, when you're charging the headset.
Please feel free to share your own widgets/modifications in the replies to this discussion, I'd love to see what others are doing with HeadsetControl!
I really enjoy the options this program opens up just by being a shell utility. Thank you to the developers and maintainers for working on this project, especially @jaypikay for his recent work on Pro X Wireless Functionality (see #197).
Beta Was this translation helpful? Give feedback.
All reactions