executor icon indicating copy to clipboard operation
executor copied to clipboard

Show state of SteelSeries Arctis 7 headset

Open vigne opened this issue 2 years ago • 1 comments

Hi,

thanks for the extension. I'd like to share my config for a SteelSeries Arctis 7 headset, which shows either 'Off' or "battery | chat-mix-dial level'. Since, to my best knowledge, there is no proper integration for this headset into Gnome, I used the HeadsetControl (https://github.com/Sapd/HeadsetControl) tool from @Sapd which works without issues.

Headset On: image

Headset On (battery critical): image

Headset Off: image

The command is likt his:

echo "" | awk '{if (battery > 0) { printf icon" "; printf " "battery"%"; if(battery < 10) { printf "<executor.css.red>"} print " | "vcm} else { print icon, "Off<executor.css.gray>"} }' vcm="`headsetcontrol -c -m`" battery="`headsetcontrol -b -c`" icon="`echo -e '\U1f3a7'`"

And finally this is the custom.css I used:

.red {
    color: red;
}

.white {
    color: white;
}

.gray {
    color: gray;
}

Maybe somebody else finds this useful.

Cheers

vigne avatar Jan 13 '23 15:01 vigne

Thanks for sharing your configuration, that's really appreciated! :blush:

raujonas avatar Feb 19 '23 15:02 raujonas