home: wm: i3bar: add bluetooth blocks

I have decided that the potential security and privacy risk of exposing
my MAC addresses is fine by me.

My earphones and headphones do not seem to expose their battery level,
would need more investigation.
This commit is contained in:
Bruno BELANYI 2021-10-16 17:55:59 +02:00
parent ae06ccac4a
commit d353e2557c

View file

@ -25,6 +25,24 @@ in
dynamic_width = true;
hide_when_empty = true;
}
(lib.optionalAttrs config.my.home.bluetooth.enable {
block = "bluetooth";
mac = "4C:87:5D:06:40:D9";
hide_disconnected = true;
format = "Boson {percentage}";
})
(lib.optionalAttrs config.my.home.bluetooth.enable {
block = "bluetooth";
mac = "94:DB:56:00:EE:93";
hide_disconnected = true;
format = "Protons {percentage}";
})
(lib.optionalAttrs config.my.home.bluetooth.enable {
block = "bluetooth";
mac = "F7:78:BA:76:52:F7";
hide_disconnected = true;
format = "MX Ergo {percentage}";
})
{
block = "cpu";
}