chezmoi/dot_config/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp
2020-07-13 14:31:48 +02:00
..
screenshots Started move to chezmoi managed .dotfiles. 2020-07-13 14:31:48 +02:00
battery-combined-tlp.sh Started move to chezmoi managed .dotfiles. 2020-07-13 14:31:48 +02:00
README.md Started move to chezmoi managed .dotfiles. 2020-07-13 14:31:48 +02: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 may need to add 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