diff --git a/bin/crypto b/bin/crypto index 9531ed7..6f59a33 100755 Binary files a/bin/crypto and b/bin/crypto differ diff --git a/bin/sbar b/bin/sbar index c56f6d7..8aab519 100755 --- a/bin/sbar +++ b/bin/sbar @@ -17,8 +17,9 @@ update_memory() { } update_bat() { - bat="$(grep -q Charging /sys/class/power_supply/BAT0/status && printf '' || printf '')" - bat="$bat $(cat /sys/class/power_supply/BAT0/capacity)%" + local dir="$(echo /sys/class/power_supply/BAT* | sort -n | tail -n1)" + bat="$(grep -q Charging "$dir/status" && printf '' || printf '')" + bat="$bat $(cat "$dir/capacity")%" } update_vol() {