From d353e2557c4b789da7a0ee221264f58ab35939c4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 16 Oct 2021 17:55:59 +0200 Subject: [PATCH] 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. --- home/wm/i3bar/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/home/wm/i3bar/default.nix b/home/wm/i3bar/default.nix index 61df862..664f11c 100644 --- a/home/wm/i3bar/default.nix +++ b/home/wm/i3bar/default.nix @@ -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"; }