From 79de974d7a658d2a8f3e27f5af10e7d918c5de44 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:30 +0100 Subject: feat(waybar): add dock indicator next to battery MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detects the ThinkPad USB-C Dock Gen2 by its built-in ethernet adapter (USB 17ef:a387) — the dock's USB hubs share product IDs with internal ThinkPad hubs but the ethernet only exists when the dock is attached. The custom/dock module sits to the left of battery; collapses to empty text when undocked so the bar stays clean on the go. Green dock glyph when docked. --- dot_config/waybar/config.jsonc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dot_config/waybar/config.jsonc') diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 6d4f287..2270b42 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -10,6 +10,7 @@ "temperature", "custom/memory", "network#bond", + "custom/dock", "battery", "privacy", "custom/webcam", @@ -181,6 +182,13 @@ "tooltip": true, }, + "custom/dock": { + "exec": "~/.config/waybar/dock-status.sh", + "return-type": "json", + "interval": 5, + "tooltip": true, + }, + "custom/notifications": { "exec": "~/.config/waybar/mako-status.sh", "return-type": "json", -- cgit v1.3.1