Hello Everyone,
I’ve fallen in love with the sway version of Manjaro for the Pinebook Pro.
Like other pinebook users after the update, my Battery indicator for the waybar was broken:
Manjaro Forum ticket
Github complaint
Expand to see my more or less functional fix
edit ~/.config/waybar/config with your preferred text editor
comment out the following line:
line 32: "battery", → line 32: //"battery",
append the following line:
line 33: "custom/battery",
add the following block to line 62:
"custom/battery":{
"interval": 10,
"states": {
"warning": 30,
"critical": 15
},
"format": " {}% ",
"tooltip": false,
"exec": "cat /sys/class/power_supply/cw2015-battery/capacity",
},
this fix will
- show the correct battery percentage
- show a battery icon
it will not
- change the appearance of the icon when the battery depletes
- show whether the battery is charging, though I could work on a solution to that
what do you think? In my humble opinion, this is still better than not having any batery information at all. Since I don’t see the problem getting resolved upstream, this or a modified version of the script could be included in the next Manjaro pbpro arm release.
Best Regards, Julius