Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/niksingh710/basic-battery-stat

Simple script utility that shows the battery state in linux. if kde connect then mobile battery too
https://github.com/niksingh710/basic-battery-stat

Last synced: about 1 month ago
JSON representation

Simple script utility that shows the battery state in linux. if kde connect then mobile battery too

Awesome Lists containing this project

README

        

# Basic Battery Stat

![preview](./assets/demo.gif)

This is a simple script utility that shows the basic stats of battery to the user.
If `qdbus` an optional dependency is installed it will fetch data from mobile devices connected to the system via kde connect.

# Installation

```bash
sudo make install
```

## Arch (AUR)
```
yay -S basic-battery-stat
```

## Nix

##### To run

```
nix run github:niksingh710/basic-battery-stat
```

##### Install

```
# flake input
bstat = {
url = "github:niksingh710/basic-battery-stat";
inputs.nixpkgs.follows = "nixpkgs";
};

environment.systemPackages = [
inputs.bstat.packages.${pkgs.system}.default
];
```

# Uninstallation

```bash
sudo make uninstall
```

# Tip

Install `qdbus` and setup kdeconnect to get mobile device data too.

`qt5-tools` are for `qdbus` on Arch Linux.

# LICENSE
```

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
```