waybar battery module #17
Replies: 1 comment 13 replies
-
Hi, The structure I have is based on some custom modules that you import on a custom bar, and then you import that bar into the config.jsonc from Waybar. This is to allow some modularity instead of having everything in the same file, that sometimes can be a mess to work with. Having that in mind, open the config.jsonc inside the config folder of Waybar. You can see some objects where each one imports a bar. If you go into the specific one you want to use, you will see some imports of the custom modules we have defined. I added a new battery module. To import it do the same as the others by specifying the path of the module file and then down in the array of modules, add the battery module definition to one of those (left, center or right). // Module import
"include": [
"~/.config/waybar/modules/custom-cava.jsonc",
]
...
// Module definition
"modules-right": [
"battery",
]
Now restart Waybar ( Sorry if I explained to much but I wanted you to understand everything :) |
Beta Was this translation helpful? Give feedback.
-
How to add a a battery module in waybar? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions