repositories
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update bar
[dotfiles.git]
/
i3
/
bar
diff --git
a/i3/bar
b/i3/bar
index
5ae1bac
..
30e24ce
100755
(executable)
--- a/
i3/bar
+++ b/
i3/bar
@@
-5,10
+5,10
@@
item(){
battery(){
path=/sys/class/power_supply
battery(){
path=/sys/class/power_supply
- now=$(($(cat "$path/BAT0/charge_now")*100/$(cat "$path/BAT0/charge_full")))
%
+ now=$(($(cat "$path/BAT0/charge_now")*100/$(cat "$path/BAT0/charge_full")))
[ "$(cat "$path/ADP1/online")" -eq "1" ] && charge="(C)"
[ "$(cat "$path/ADP1/online")" -eq "1" ] && charge="(C)"
- [ "$now"
= "100%
" ] && now="FULL"
- echo -n "$now$charge"
+ [ "$now"
-ge "100
" ] && now="FULL"
+ echo -n "$now
%
$charge"
}
volume(){
}
volume(){