1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-27 10:31:30 +00:00
Dotfiles/.config/polybar/polybar-scripts/battery-combined-tlp
2020-07-27 07:59:00 +03:00
..
screenshots add all dotfiles 2020-07-27 07:59:00 +03:00
battery-combined-tlp.sh add all dotfiles 2020-07-27 07:59:00 +03:00
README.md add all dotfiles 2020-07-27 07:59:00 +03: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