This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# CRUX post-install script | |
# | |
# Author: Chris Rainey <ckrzen at tuta dot io> | |
# | |
# Version: 0.8 | |
### | |
UPGRADE() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# CRONTAB ENTRY: */5 * * * * /home/chris/.BATTERY_LOW_WARNING >/dev/null 2>&1 | |
POWERSUPPLY=/sys/class/power_supply/ACAD/online | |
STATUS=$(cat $POWERSUPPLY) | |
BATTERY=$(upower -e | grep 'BAT') | |
BATTERY_LEVEL=$(upower -i $BATTERY|grep percentage|awk '{ print $2 }'|sed s/'%'/''/g) |