1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-12-01 19:06:41 +00:00
Dotfiles/.config/polybar/polybar-scripts/battery-cyberpower
2020-07-27 07:59:00 +03:00
..
battery-cyberpower.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-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