mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-12-01 19:06:41 +00:00
32 lines
524 B
Markdown
32 lines
524 B
Markdown
# Script: battery-combined-tlp
|
|
|
|
A shell script that shows the battery status.
|
|
|
|
It uses TLP and requires root privileges. Note that the icon doesn't change.
|
|
|
|
![battery-combined-tlp](screenshots/1.png)
|
|
|
|
|
|
## Dependencies
|
|
|
|
* `tlp`
|
|
|
|
|
|
## Configuration
|
|
|
|
You have to add the `tlp-stat` command to the `/etc/sudoers` NOPASSWD of your user:
|
|
|
|
```ini
|
|
user ALL=(ALL) NOPASSWD: /usr/bin/tlp-stat
|
|
```
|
|
|
|
|
|
## Module
|
|
|
|
```ini
|
|
[module/battery-combined-tlp]
|
|
type = custom/script
|
|
exec = ~/polybar-scripts/battery-combined-tlp.sh
|
|
interval = 10
|
|
```
|