From e50780e5bdc3a8f24ad5baf12eaa47bfc152a53f Mon Sep 17 00:00:00 2001 From: Leon Hazen <403745+leonhazen@users.noreply.github.com> Date: Mon, 14 Jul 2025 10:40:13 +1000 Subject: [PATCH] Add collapsing tray to waybar (#130) Co-authored-by: David Heinemeier Hansson --- config/waybar/config | 20 ++++++++++++++++++++ config/waybar/style.css | 5 +++++ 2 files changed, 25 insertions(+) diff --git a/config/waybar/config b/config/waybar/config index 4104a00..71c2c91 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -10,6 +10,7 @@ "clock" ], "modules-right": [ + "group/tray-expander", "bluetooth", "network", "pulseaudio", @@ -102,5 +103,24 @@ "format-icons": { "default": ["", "", ""] } + }, + "group/tray-expander": { + "orientation": "inherit", + "drawer": { + "transition-duration": 600, + "children-class": "tray-group-item" + }, + "modules": [ + "custom/expand-icon", + "tray" + ] + }, + "custom/expand-icon": { + "format": " ", + "tooltip": false + }, + "tray": { + "icon-size": 12, + "spacing": 12 } } diff --git a/config/waybar/style.css b/config/waybar/style.css index 5762928..0a5bc3b 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -17,6 +17,7 @@ } #custom-dropbox, +#tray, #cpu, #battery, #network, @@ -28,6 +29,10 @@ margin-right: 13px; } +#custom-expand-icon { + margin-right: 12px; +} + tooltip { padding: 2px; }