adding a sound notification for 20% - 15% - 10% - 5% wireless headset battery status (Linux) #241
y0ur5h4d0w
started this conversation in
Ideas
Replies: 1 comment
-
You can send a desktop notification with #!/bin/bash
while true; do
batt=$(headsetcontrol -b -c)
if (( "$batt" <= 10 )); then
notify-send "Headset battery" "$batt"
headsetcontrol -n 0
headsetcontrol -n 1
fi
sleep 60
done You can lookup a command to play an audio file, if the headset doesn't make any sound with |
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
-
hi all!
is there a way to add a sound notification for when the headset is at a set battery percentage? i'm using a Corsair Void Elite RGB wireless headset and would be amazing to have a sound playing when the battery is low, the original iCue has a voice that tells the battery is low at around 15%, the ability to set a personalized sound for a personalized battery percentage would be amazing, sadly i can't code and i can't implement it myself :\ i'm still a noob in linux and programming
Beta Was this translation helpful? Give feedback.
All reactions