chezmoi/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp
2021-02-25 09:38:16 +01:00
..
screenshots Added links and polybar. 2020-07-14 15:19:48 +02:00
battery-combined-tlp.sh Updated polybar-scripts. 2021-02-25 09:38:16 +01:00
README.md Updated polybar-scripts. 2021-02-25 09:38:16 +01:00

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

Dependencies

  • tlp

Configuration

You have to add the tlp-stat command to the /etc/sudoers NOPASSWD of your user:

user ALL=(ALL) NOPASSWD: /usr/bin/tlp-stat

Module

[module/battery-combined-tlp]
type = custom/script
exec = ~/polybar-scripts/battery-combined-tlp.sh
interval = 10