Compare commits
No commits in common. "2cb6ab6f374d345b5ca09cbe02d112cdf914926a" and "a4693456633e923d6be5046e9e5e378fc1d9a182" have entirely different histories.
2cb6ab6f37
...
a469345663
@ -5,7 +5,7 @@
|
||||
set -e
|
||||
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
pmset -g batt | tail -n 1 | grep -Eo "\d+%" | cut -d% -f1
|
||||
echo "" # TODO
|
||||
else # Linux
|
||||
cat /sys/class/power_supply/BAT0/capacity
|
||||
fi
|
||||
|
@ -6,9 +6,9 @@ set -e
|
||||
|
||||
pc=$(batinfo)
|
||||
|
||||
if [[ "$pc" -gt 40 ]]; then
|
||||
if [ "$pc" -gt 40 ]; then
|
||||
echo "#[fg=black, bg=green] $(batinfo)% #[default]"
|
||||
elif [[ "$pc" -gt 10 ]]; then
|
||||
elif [ "$pc" -gt 10 ]; then
|
||||
echo "#[fg=black, bg=yellow] $(batinfo)% #[default]"
|
||||
else
|
||||
echo "#[fg=black, bg=red] $(batinfo)% #[default]"
|
||||
|
@ -1,4 +1,3 @@
|
||||
; extends
|
||||
;; key/value-like types. Works with struct values, struct definitions and parameter value/type pairs:
|
||||
;;
|
||||
;; @keyed_element.outer => key and value
|
||||
|
Loading…
x
Reference in New Issue
Block a user