battery plugin code clean up
parent
0127dc2dc7
commit
23de53a084
|
|
@ -77,60 +77,7 @@ battery_charge(){
|
|||
echo "${HALF_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${D_C}${D_C}${normal}"
|
||||
;;
|
||||
*)
|
||||
echo "${DANGER_COLOR}ERROR\[${normal}\]"
|
||||
echo "${DANGER_COLOR}UNPLG\[${normal}\]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# if [ $BATTERY_PERC < 0 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="ERROR"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 90 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${F_C}${F_C}${F_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 80 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${F_C}${F_C}${HALF_COLOR}${F_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 70 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${F_C}${F_C}${DEPLETED_COLOR}${D_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 60 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${F_C}${HALF_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 50 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 40 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${HALF_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 30 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${D_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 20 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${HALF_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${D_C}${normal}"
|
||||
#else
|
||||
#if [ $BATTERY_PERC > 10 ];
|
||||
#then
|
||||
#BATTERY_OUTPUT="${FULL_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${D_C}${D_C}${normal}"
|
||||
#else
|
||||
#BATTERY_OUTPUT="${DANGER_COLOR}${F_C}${DEPLETED_COLOR}${D_C}${D_C}${D_C}${D_C}${normal}"
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#fi
|
||||
#echo $BATTERY_OUTPUT
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
# - Monokai colors - http://monokai.nl/blog/2006/07/15/textmate-color-theme/
|
||||
# - Bash_it modern theme
|
||||
#
|
||||
# Screenshot: http://goo.gl/VCmX5
|
||||
# by Jesus de Mula <jesus@demula.name>
|
||||
|
||||
# For the real Monokai colors you should add these to your .XDefaults or
|
||||
|
|
|
|||
Loading…
Reference in New Issue