Add collapsing tray to waybar (#130)

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Leon Hazen
2025-07-14 10:40:13 +10:00
committed by GitHub
parent dc0032c9c3
commit e50780e5bd
2 changed files with 25 additions and 0 deletions

View File

@ -10,6 +10,7 @@
"clock" "clock"
], ],
"modules-right": [ "modules-right": [
"group/tray-expander",
"bluetooth", "bluetooth",
"network", "network",
"pulseaudio", "pulseaudio",
@ -102,5 +103,24 @@
"format-icons": { "format-icons": {
"default": ["", "", ""] "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
} }
} }

View File

@ -17,6 +17,7 @@
} }
#custom-dropbox, #custom-dropbox,
#tray,
#cpu, #cpu,
#battery, #battery,
#network, #network,
@ -28,6 +29,10 @@
margin-right: 13px; margin-right: 13px;
} }
#custom-expand-icon {
margin-right: 12px;
}
tooltip { tooltip {
padding: 2px; padding: 2px;
} }