Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/battery-combined-tlp
horhik aec58dae23 split polybar by themes 2020-09-05 14:43:37 +03:00
..
screenshots split polybar by themes 2020-09-05 14:43:37 +03:00
README.md split polybar by themes 2020-09-05 14:43:37 +03:00
battery-combined-tlp.sh split polybar by themes 2020-09-05 14:43:37 +03:00

README.md

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