From b2c17e69564b39f3736c9eb0f19b9ab848d7efb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 31 Aug 2024 00:57:21 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(waybar):=20add=20new=20module:?= =?UTF-8?q?=20bluetooth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/waybar/modules/bluetooth.jsonc | 13 +++++++++++++ .config/waybar/style.css | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 .config/waybar/modules/bluetooth.jsonc diff --git a/.config/waybar/modules/bluetooth.jsonc b/.config/waybar/modules/bluetooth.jsonc new file mode 100644 index 00000000..b021fdec --- /dev/null +++ b/.config/waybar/modules/bluetooth.jsonc @@ -0,0 +1,13 @@ +{ + "bluetooth": { + "format": "", + "format-disabled": "", + "format-connected": " {num_connections}", + "format-connected-battery": "{icon} {num_connections}", + "format-icons": ["󰥇", "󰤾", "󰤿", "󰥀", "󰥁", "󰥂", "󰥃", "󰥄", "󰥅", "󰥆", "󰥈"], + "tooltip-format": "{controller_alias}\n{num_connections} connected", + "tooltip-format-connected": "{controller_alias}\n{num_connections} connected\n\n{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}", + "tooltip-format-enumerate-connected-battery": "{device_alias}\t{icon} {device_battery_percentage}%", + }, +} diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 92b068ca..903786b2 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -43,6 +43,7 @@ #custom-fans, #clock, #idle_inhibitor, +#bluetooth, #custom-wf-recorder, #pulseaudio, #backlight, @@ -224,6 +225,10 @@ window#waybar.hidden { color: @peach; } +#bluetooth { + color: @blue; +} + #window { background: linear-gradient( 52deg,