added chrome and power.sh to yoga2 branch

This commit is contained in:
2014-11-09 20:45:44 -07:00
parent 0272acd027
commit 4f9016bfef
2 changed files with 24 additions and 0 deletions
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
exec google-chrome-beta --disk-cache-dir="/tmp/ewpt3ch-cache"
Executable
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
if `acpi -a | grep -q on`
then
echo "Â"
else
bat=`acpi -b | awk '{print $4}'`
bat="${bat%%%*}" #remove percent
if [[ $bat -gt 75 ]]
then
echo "ó"
elif [[ $bat -gt 25 ]]
then
if [[ $bat -gt 45 ]]
then
echo "ò"
else
echo "ò" $bat"%"
fi
else
echo "ñ" $bat"%"
fi
fi