From 4f9016bfef1d6f8c6d1aeae3af753dc4c1f08e73 Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Sun, 9 Nov 2014 20:45:44 -0700 Subject: [PATCH] added chrome and power.sh to yoga2 branch --- chrome | 2 ++ power.sh | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 chrome create mode 100755 power.sh diff --git a/chrome b/chrome new file mode 100755 index 0000000..0af4562 --- /dev/null +++ b/chrome @@ -0,0 +1,2 @@ +#!/bin/bash +exec google-chrome-beta --disk-cache-dir="/tmp/ewpt3ch-cache" diff --git a/power.sh b/power.sh new file mode 100755 index 0000000..2fee9cf --- /dev/null +++ b/power.sh @@ -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