diff options
author | Ryan Kavanagh <rak@debian.org> | 2015-10-09 12:35:36 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2015-10-09 12:35:36 -0400 |
commit | 40c462bf14ea0363a0d845915344ea60b6d088ae (patch) | |
tree | 662c0dd7497409a42bc988fb82b3c592fbe0e03b /.dzen | |
parent | Drop useless configs (diff) |
Remove unused read from files in /sys from battery.sh
Diffstat (limited to '.dzen')
-rwxr-xr-x | .dzen/battery.sh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/.dzen/battery.sh b/.dzen/battery.sh index 0242b8a..7a5af93 100755 --- a/.dzen/battery.sh +++ b/.dzen/battery.sh @@ -18,8 +18,6 @@ X=0 # x position Y=0 # y position FN='-misc-fixed-medium-r-semicondensed--12-110-75-75-c-60-iso8859-1' # font -STATEFILE='/sys/bus/acpi/drivers/battery/PNP0C0A:00/power_supply/BAT1/uevent' # battery's state file - LOWBAT=10 # percentage of battery life marked as low LOWCOL='#ff4747' # color when battery is low CHGCOL='#60da11' # color when battery is charging @@ -31,11 +29,8 @@ PREBAR='^i(/home/ryan/.dzen/icons/power-bat.xbm) ' # caption (also icons are pos while true; do PRESENT=`acpi -b`; if [ "${PRESENT}" ]; then - BAT_FULL=`cat $STATEFILE|grep POWER_SUPPLY_CHARGE_FULL_DESIGN | cut -d '=' -f 2 `; STATUS=`echo ${PRESENT} | grep Charging`; -# echo $BAT_FULL " " $STATUS " " $RCAP > /dev/stdout - RPERC=`echo ${PRESENT} | cut -d, -f2 | sed -e 's/[^0-9]//g'`; # draw the bar and pipe everything into dzen |