waybar: create a group for disks
This commit is contained in:
parent
46f976dcc9
commit
6eec462476
1 changed files with 12 additions and 5 deletions
|
@ -17,11 +17,7 @@
|
|||
% endfor
|
||||
|
||||
"wireplumber",
|
||||
|
||||
% for disk in host.get('disks', ['/']):
|
||||
"disk#${disk}",
|
||||
% endfor
|
||||
|
||||
"group/disks",
|
||||
"cpu",
|
||||
"memory",
|
||||
|
||||
|
@ -57,6 +53,17 @@
|
|||
"format-icons": ["\uf026", "\uf027", "\uf028"]
|
||||
},
|
||||
|
||||
"group/disks": {
|
||||
// TODO: make drawer that expands orthogonally, outside of the bar
|
||||
"orientation": "inherit",
|
||||
"modules": [
|
||||
% for disk in host.get('disks', ['/']):
|
||||
"disk#${disk}",
|
||||
% endfor
|
||||
],
|
||||
"drawer": {}
|
||||
},
|
||||
|
||||
% for disk in host.get('disks', ['/']):
|
||||
"disk#${disk}": {
|
||||
"path": "${disk}",
|
||||
|
|
Loading…
Add table
Reference in a new issue