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"
],
"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
}
}

View File

@ -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;
}