Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/battery-cyberpower
horhik aec58dae23 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-cyberpower.sh split polybar by themes 2020-09-05 14:43:37 +03:00

README.md

Script: battery-cyberpower

A shell script that shows the battery status for CyberPower UPS devices.

This script is able to display power supply changes in real time.

Dependencies

  • pwrstat from CyberPower's website

Configuration

You have to add the pwrstat command to the /etc/sudoers NOPASSWD of your user:

user ALL=(ALL) NOPASSWD: /usr/bin/pwrstat

Module

[module/battery-cyberpower]
type = custom/script
exec = ~/polybar-scripts/battery-cyberpower.sh
tail = true