Show DS5/DS4/DS3 battery remaining power percentage at the top panel
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Version | Status |
---|---|
11 | Active |
10 | Active |
9 | Active |
8 | Active |
7 | Active |
6 | Active |
5 | Active |
4 | Active |
3 | Active |
2 | Active |
1 | Active |
let powerValue = GLib.spawn_command_line_sync("cat " + powerFile.get_path()); let statusValue = GLib.spawn_command_line_sync("cat " + statusFile.get_path()); let power = powerValue[1].toString().replace("\n", ""); you can read the file with Gio , spawn cat is a bad choice.