From 8ff4a2568356dbc7a6c50fed52521c9a8e8c7e29 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 16 Jun 2025 13:25:16 +0200 Subject: [PATCH] Add bluetooth to waybar and remove all distractions Hide status on tooltips only --- config/waybar/config | 17 ++++++++++++----- config/waybar/style.css | 1 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/config/waybar/config b/config/waybar/config index 616108c..43a346b 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -10,6 +10,7 @@ "clock" ], "modules-right": [ + "bluetooth", "network", "cpu", "battery", @@ -42,7 +43,7 @@ }, "cpu": { "interval": 5, - "format": "{usage}% 󰍛", + "format": "󰍛", "on-click": "alacritty -e btop" }, "clock": { @@ -52,11 +53,10 @@ }, "network": { "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"], - "format-wifi" : "{bandwidthDownBytes} {icon}", - "format-ethernet" : "{bandwidthDownBytes} 󰀂", + "format-wifi" : "{icon}", + "format-ethernet" : "󰀂", "format-disconnected" : "󰖪", - "tooltip-format-wifi": "{icon} {essid}\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", - "tooltip-format-ethernet": "{icon} {ifname}\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", + "tooltip-format": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", "tooltip-format-disconnected": "Disconnected", "interval": 3, "nospacing": 1, @@ -83,6 +83,13 @@ "critical": 10 } }, + "bluetooth": { + "format": "", + "format-disabled": "󰂲", + "format-connected": "", + "tooltip-format": "{num_connections} devices connected", + "on-click": "GTK_THEME=Adwaita-dark /usr/bin/blueberry" + }, "power-profiles-daemon": { "format": "{icon}", "tooltip-format": "Power profile: {profile}", diff --git a/config/waybar/style.css b/config/waybar/style.css index d53754e..91365a5 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -22,6 +22,7 @@ #power-profiles-daemon, #battery, #network, +#bluetooth, #clock { padding: 0 8px 0 8px; }