diff options
Diffstat (limited to 'herbstluftwm/.config')
| -rwxr-xr-x | herbstluftwm/.config/herbstluftwm/panel_indicators.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/panel_indicators.sh b/herbstluftwm/.config/herbstluftwm/panel_indicators.sh index 5797781..a9e71da 100755 --- a/herbstluftwm/.config/herbstluftwm/panel_indicators.sh +++ b/herbstluftwm/.config/herbstluftwm/panel_indicators.sh | |||
| @@ -110,8 +110,8 @@ battery() | |||
| 110 | nr="${bat: -1}" | 110 | nr="${bat: -1}" |
| 111 | bat_info="" | 111 | bat_info="" |
| 112 | 112 | ||
| 113 | bat_lvl=$(cat /sys/class/power_supply/BAT0/capacity) | 113 | bat_lvl=$(cat /sys/class/power_supply/BAT$nr/capacity) |
| 114 | bat_state=$(cat /sys/class/power_supply/BAT0/status) | 114 | bat_state=$(cat /sys/class/power_supply/BAT$nr/status) |
| 115 | 115 | ||
| 116 | if [ $bat_state == "Charging" ] ; then | 116 | if [ $bat_state == "Charging" ] ; then |
| 117 | bat_status="${battery_icon[5]}" | 117 | bat_status="${battery_icon[5]}" |
