aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar/config.jsonc
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:30 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:30 +0100
commit79de974d7a658d2a8f3e27f5af10e7d918c5de44 (patch)
tree9f4810eb28948d48dc44bcd564e12fd9ff492896 /dot_config/waybar/config.jsonc
parent7c0e7252eefd539345b7bd5b3ce955bc75307162 (diff)
downloaddotfiles-79de974d7a658d2a8f3e27f5af10e7d918c5de44.tar.gz
dotfiles-79de974d7a658d2a8f3e27f5af10e7d918c5de44.tar.bz2
dotfiles-79de974d7a658d2a8f3e27f5af10e7d918c5de44.zip
feat(waybar): add dock indicator next to battery
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.
Diffstat (limited to 'dot_config/waybar/config.jsonc')
-rw-r--r--dot_config/waybar/config.jsonc8
1 files changed, 8 insertions, 0 deletions
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",