From ba8372d6839f27918825585852d5135d4709855d Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Fri, 3 Jan 2025 16:19:42 +0500 Subject: [PATCH] feat: Waybar | add bluetooth widget to waybar --- home-manager/dotfiles/waybar/config.jsonc | 10 ++++++++++ home-manager/dotfiles/waybar/style.css | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/home-manager/dotfiles/waybar/config.jsonc b/home-manager/dotfiles/waybar/config.jsonc index 268fbaa..d4cf1fb 100644 --- a/home-manager/dotfiles/waybar/config.jsonc +++ b/home-manager/dotfiles/waybar/config.jsonc @@ -14,6 +14,7 @@ ], "modules-right": [ "pulseaudio", + "bluetooth", "network", "cpu", "memory", @@ -153,5 +154,14 @@ "suspend": "systemctl suspend", "hibernate": "systemctl hibernate" } + }, + "bluetooth": { + "format-on": "󰂯", + "format-off": "󰂲", + "format-disabled": "", // an empty format will hide the module + "format-connected": "󰂱 {num_connections}", + "tooltip-format": "{controller_alias}\t{controller_address}", + "tooltip-format-connected": "{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}" } } diff --git a/home-manager/dotfiles/waybar/style.css b/home-manager/dotfiles/waybar/style.css index ae0eb23..8d30166 100644 --- a/home-manager/dotfiles/waybar/style.css +++ b/home-manager/dotfiles/waybar/style.css @@ -66,6 +66,7 @@ button:hover { #tray, #network, #mode, +#bluetooth, #scratchpad { margin-top: 2px; margin-bottom: 2px; @@ -134,6 +135,11 @@ button:hover { margin-right: 0; } +#bluetooth { + color: @sapphire; + border-bottom: 2px solid @sapphire; +} + #custom-vpn { color: @lavender; border-radius: 15px;