~speguero/wm-stat-pwr

32a2d5f9c16650980e8964b447852511ed5d67ee — Steven Peguero 1 year, 7 months ago 32b7315
Change project name to baterio (Esperanto)
4 files changed, 19 insertions(+), 29 deletions(-)

M README.md
R batterieees => baterio
M contrib/i3blocks.ini
M contrib/lemonbar.sh
M README.md => README.md +8 -18
@@ 1,6 1,6 @@
# i3blocks-batterieees
# baterio

`batterieees` is an [`i3blocks`](https://github.com/vivien/i3blocks) status indicator that reports a percentage of available battery power on your machine, based upon a single battery or a total sum of available power between all present batteries.
`baterio` is an [`i3blocks`](https://github.com/vivien/i3blocks) status indicator that reports a percentage of available battery power on your machine, based upon a single battery or a total sum of available power between all present batteries.

---



@@ 21,22 21,22 @@

## Disclaimer

Due to the nature of battery technology and issues of inaccuracy from estimated times of remaining life before loss of power, `batterieees` does not, and will never, report such information.
Due to the nature of battery technology and issues of inaccuracy from estimated times of remaining life before loss of power, `baterio` does not, and will never, report such information.

## Install

__1)__ Copy `batterieees` to a directory of your choosing.
__1)__ Copy `baterio` to a directory of your choosing.

__2)__ Edit your `i3blocks` configuration file and add the following configuration:

```ini
[batterieees]
command=/path/to/batterieees
[baterio]
command=/path/to/baterio
label=B
interval=1
```

Specify the full path of `batterieees` in the `command` argument.
Specify the full path of `baterio` in the `command` argument.

__3)__ Refresh your i3 or Sway session and enjoy.



@@ 68,16 68,6 @@ If one or more batteries are present, one of the first four status indicators wi
CHR 84%
```

## Contributing

Contributions are welcome!

Submit __patches__ via email at [~speguero/patch@lists.sr.ht](mailto:~speguero/patch@lists.sr.ht) using [git-send-email](https://git-send-email.io). Include `[i3blocks-batterieees]` at the beginning of your subject line.

Submit __issue__, __question__ and __suggestion__ tickets as a [SourceHut registered user](https://todo.sr.ht/~speguero/tracker) or via email at [~speguero/tracker@todo.sr.ht](mailto:~speguero/tracker@todo.sr.ht). Include `[i3blocks-batterieees]` at the beginning of your subject line.

Items submitted to mirror repositories on GitHub and GitLab will be ignored.

## License

Access the `LICENSE` file for details.
Refer to the `LICENSE` file for details.

R batterieees => baterio +5 -5
@@ 1,11 1,11 @@
#!/usr/bin/env python3

'''
   ___________________________
  |                           |_
  |   B A T T E R I E E E S   | |
  |   *- - - - - - - - - -*   |_|
  |___________________________|
   ___________________
  |                   |_
  |   B A T E R I O   | |
  |   *- - - - - -*   |_|
  |___________________|

'''


M contrib/i3blocks.ini => contrib/i3blocks.ini +1 -1
@@ 1,4 1,4 @@
[batterieees]
command=/path/to/batterieees
command=/path/to/baterio
label=B
interval=1

M contrib/lemonbar.sh => contrib/lemonbar.sh +5 -5
@@ 1,17 1,17 @@
#!/bin/sh

# Provides de-facto batterieees support for lemonbar (https://github.com/lemonboy/bar).
# Provides de-facto baterio support for lemonbar (https://github.com/lemonboy/bar).
#
# To test, run the following in a shell:
# 
# `sh lemonbar.sh | lemonbar`
#
# Copy the function found below over to your own lemonbar config, change the path
# of batterieees to wherever you have it stored, and enjoy.
# of baterio to wherever you have it stored, and enjoy.

batterieees()
baterio()
{
	script_file="$(../batterieees)"
	script_file="$(../baterio)"
	output_text="$(echo $script_file | awk -F ' ' '{ print $1 " " $2 }')"
	output_color="$(echo $script_file | awk -F ' ' '{ print $3 }')"



@@ 20,7 20,7 @@ batterieees()

while true
do
	batterieees
	baterio
	sleep 1
done